:root {
  --primary-color: #FFD700;
  --primary-color-hover: #E0BF00;
  --secondary-color: #1A1A1A;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-card: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--secondary-color);
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

.page-lottery h1, .page-lottery h2, .page-lottery h3, .page-lottery h4, .page-lottery h5, .page-lottery h6 {
    color: var(--primary-color);
}

/* General container for content sections */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-lottery__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.page-lottery__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-lottery__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-lottery__hero-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__hero-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-lottery__hero-button--primary:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-lottery__hero-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Introduction Section --- */
.page-lottery__introduction-section {
  padding: 60px 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__introduction-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__introduction-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-lottery__introduction-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-lottery__introduction-content p {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  max-width: 800px;
}

.page-lottery__introduction-image {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}

/* --- Types Section --- */
.page-lottery__types-section {
  background-color: #222;
  padding: 60px 20px;
  color: var(--text-light);
}

.page-lottery__types-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__types-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-lottery__types-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__type-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__type-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__type-heading {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__type-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__type-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__type-button:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
}

/* --- Guide Section --- */
.page-lottery__guide-section {
  background-color: var(--secondary-color);
  padding: 60px 20px;
  color: var(--text-light);
}

.page-lottery__guide-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__guide-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-lottery__guide-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.page-lottery__guide-item {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-lottery__guide-step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__guide-item p {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-lottery__guide-item a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-lottery__guide-item a:hover {
  color: #FFE54C;
}

.page-lottery__guide-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
}

.page-lottery__guide-cta {
  text-align: center;
}

.page-lottery__guide-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__guide-button:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Tips Section --- */
.page-lottery__tips-section {
  background-color: #222;
  padding: 60px 20px;
  color: var(--text-light);
}

.page-lottery__tips-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__tips-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-lottery__tips-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery__tips-item {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__tips-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__tips-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__tips-item p {
  font-size: 1em;
}

/* --- Promotions Section --- */
.page-lottery__promotions-section {
  background-color: var(--secondary-color);
  padding: 60px 20px;
  color: var(--text-light);
}

.page-lottery__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__promotions-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-lottery__promotions-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__promotion-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__promotion-heading {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__promotion-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__promotion-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__promotion-button:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
}

/* --- Security Section --- */
.page-lottery__security-section {
  background-color: #222;
  padding: 60px 20px;
  color: var(--text-light);
}

.page-lottery__security-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__security-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-lottery__security-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__feature-item {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__feature-heading {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__feature-item p {
  font-size: 1em;
}

/* --- FAQ Section --- */
.page-lottery__faq-section {
  background-color: var(--secondary-color);
  padding: 60px 20px;
  color: var(--text-light);
}

.page-lottery__faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__faq-main-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-lottery__faq-list {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.page-lottery__faq-item {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery__faq-item:last-child {
  margin-bottom: 0;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-question h3 {
  font-size: 1.2em;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

.page-lottery__faq-toggle {
  font-size: 1.8em;
  color: var(--primary-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding: 15px 25px 25px;
}

.page-lottery__faq-answer p {
  font-size: 1em;
  line-height: 1.7;
  margin: 0;
}

.page-lottery__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-lottery__faq-answer a:hover {
  color: #FFE54C;
}

/* --- Contact Section --- */
.page-lottery__contact-section {
  background-color: #222;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-light);
}

.page-lottery__contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-lottery__contact-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-lottery__contact-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__contact-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__contact-button:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }

  .page-lottery__introduction-title,
  .page-lottery__types-title,
  .page-lottery__guide-title,
  .page-lottery__tips-title,
  .page-lottery__promotions-title,
  .page-lottery__security-title,
  .page-lottery__faq-main-title,
  .page-lottery__contact-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 80px; /* Mobile: Adjust for smaller fixed header */
  }

  .page-lottery__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-lottery__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-lottery__introduction-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__tips-section,
  .page-lottery__promotions-section,
  .page-lottery__security-section,
  .page-lottery__faq-section,
  .page-lottery__contact-section {
    padding: 40px 15px;
  }

  .page-lottery__introduction-title,
  .page-lottery__types-title,
  .page-lottery__guide-title,
  .page-lottery__tips-title,
  .page-lottery__promotions-title,
  .page-lottery__security-title,
  .page-lottery__faq-main-title,
  .page-lottery__contact-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-lottery__introduction-content p,
  .page-lottery__types-description,
  .page-lottery__guide-description,
  .page-lottery__tips-description,
  .page-lottery__promotions-description,
  .page-lottery__security-description,
  .page-lottery__feature-item p,
  .page-lottery__tips-item p,
  .page-lottery__promotion-text,
  .page-lottery__type-text,
  .page-lottery__guide-item p,
  .page-lottery__faq-answer p,
  .page-lottery__contact-description {
    font-size: 0.95em;
  }

  .page-lottery__types-grid,
  .page-lottery__guide-steps,
  .page-lottery__tips-list,
  .page-lottery__promotion-cards,
  .page-lottery__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-lottery__type-card,
  .page-lottery__guide-item,
  .page-lottery__tips-item,
  .page-lottery__promotion-card,
  .page-lottery__feature-item {
    padding: 20px;
  }

  .page-lottery__type-heading,
  .page-lottery__guide-step-title,
  .page-lottery__tips-item h3,
  .page-lottery__promotion-heading,
  .page-lottery__feature-heading {
    font-size: 1.3em;
  }

  .page-lottery__type-image,
  .page-lottery__guide-image,
  .page-lottery__promotion-image {
    height: 160px;
  }

  .page-lottery__guide-button,
  .page-lottery__contact-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }

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

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

  .page-lottery__faq-toggle {
    font-size: 1.5em;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 10px 20px 20px;
  }
}

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

  .page-lottery__introduction-title,
  .page-lottery__types-title,
  .page-lottery__guide-title,
  .page-lottery__tips-title,
  .page-lottery__promotions-title,
  .page-lottery__security-title,
  .page-lottery__faq-main-title,
  .page-lottery__contact-title {
    font-size: 1.6em;
  }

  .page-lottery__hero-description {
    font-size: 0.9em;
  }

  .page-lottery__hero-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }

  .page-lottery__introduction-content p,
  .page-lottery__types-description,
  .page-lottery__guide-description,
  .page-lottery__tips-description,
  .page-lottery__promotions-description,
  .page-lottery__security-description,
  .page-lottery__feature-item p,
  .page-lottery__tips-item p,
  .page-lottery__promotion-text,
  .page-lottery__type-text,
  .page-lottery__guide-item p,
  .page-lottery__faq-answer p,
  .page-lottery__contact-description {
    font-size: 0.9em;
  }

  .page-lottery__type-heading,
  .page-lottery__guide-step-title,
  .page-lottery__tips-item h3,
  .page-lottery__promotion-heading,
  .page-lottery__feature-heading {
    font-size: 1.2em;
  }

  .page-lottery__type-button,
  .page-lottery__promotion-button {
    font-size: 0.9em;
    padding: 8px 15px;
  }

  .page-lottery__guide-button,
  .page-lottery__contact-button {
    font-size: 1em;
    padding: 10px 25px;
  }

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

  .page-lottery__faq-toggle {
    font-size: 1.3em;
  }
}