.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark background */
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Ensure this matches shared.css body background */
  padding-top: 120px; /* Adjust for fixed header */
}

.page-lottery__hero-banner {
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-height: 500px;
}

.page-lottery__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 15px;
  max-width: 80%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold color for emphasis */
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-lottery__section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery__dark-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #f8f9fa;
  color: #333333; /* Dark text for light background */
}

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

.page-lottery__heading {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
  font-weight: 700;
}

.page-lottery__heading--dark {
  color: #0A246A;
}

.page-lottery__sub-heading {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #cccccc;
}

.page-lottery__sub-heading--dark {
  color: #555555;
}

.page-lottery__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-lottery__text-block {
  flex: 1;
}

.page-lottery__text-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-lottery__image-block {
  flex: 1;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

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

.page-lottery__type-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #333333;
}

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

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

.page-lottery__type-title {
  font-size: 1.5em;
  color: #0A246A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__type-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-lottery__advantage-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery__advantage-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__advantage-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-lottery__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

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

.page-lottery__step-title {
  font-size: 1.5em;
  color: #0A246A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-lottery__tip-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__tip-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__tip-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-lottery__faq {
  padding-bottom: 80px;
}

.page-lottery__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  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: #0A246A; /* Dark blue background for question */
  color: #ffffff;
  border: 1px solid #0A246A;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: #1a3a80;
  border-color: #1a3a80;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-lottery__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #333333;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #333333;
}

.page-lottery__call-to-action {
  background-color: #0A246A;
  color: #ffffff;
  padding: 80px 0;
}

.page-lottery__call-to-action-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-lottery__call-to-action .page-lottery__heading {
  color: #FFD700;
}

.page-lottery__call-to-action .page-lottery__sub-heading {
  color: #e0e0e0;
  margin-bottom: 50px;
}

/* Buttons */
.page-lottery__btn-primary {
  display: inline-block;
  background: #FFD700;
  color: #0A246A;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-lottery__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-primary--large {
  padding: 18px 45px;
  font-size: 1.3em;
}

.page-lottery__btn-secondary {
  display: inline-block;
  background: none;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.page-lottery__btn-secondary:hover {
  background: #FFD700;
  color: #0A246A;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-link {
  display: inline-block;
  color: #0A246A;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  padding: 10px 20px;
  border: 1px solid #0A246A;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-lottery__btn-link:hover {
  background-color: #0A246A;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.5em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__heading {
    font-size: 2.2em;
  }
  .page-lottery__sub-heading {
    font-size: 1.1em;
  }
  .page-lottery__content-wrapper {
    flex-direction: column;
  }
  .page-lottery__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-lottery__advantages-grid, .page-lottery__types-grid, .page-lottery__guide-steps, .page-lottery__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-lottery__type-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .page-lottery__hero-container {
    padding: 20px 15px;
  }
  .page-lottery__hero-content {
    padding: 20px 25px;
    max-width: 90%;
  }
  .page-lottery__hero-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-lottery__hero-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  .page-lottery__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery__btn-primary--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-lottery__heading {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-lottery__sub-heading {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-lottery__text-block p {
    font-size: 0.95em;
  }
  .page-lottery__advantages-grid, .page-lottery__types-grid, .page-lottery__guide-steps, .page-lottery__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__type-card, .page-lottery__advantage-item, .page-lottery__step-item, .page-lottery__tip-card {
    padding: 25px;
  }
  .page-lottery__type-image {
    height: 150px;
  }
  .page-lottery__type-title {
    font-size: 1.3em;
  }
  .page-lottery__advantage-title {
    font-size: 1.4em;
  }
  .page-lottery__step-title {
    font-size: 1.3em;
  }
  .page-lottery__tip-title {
    font-size: 1.4em;
  }
  .page-lottery__faq-list {
    margin-top: 30px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 1em;
  }
  .page-lottery__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  .page-lottery__faq-answer p {
    font-size: 0.95em;
  }
  .page-lottery__btn-link {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  /* Mobile image adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure contrast for specific elements if needed */
.page-lottery__text-block p {
  color: #e0e0e0; /* Light text for dark background */
}

.page-lottery__type-card, .page-lottery__step-item {
  background: #ffffff;
  color: #333333;
}

.page-lottery__type-title, .page-lottery__step-title {
  color: #0A246A;
}

.page-lottery__type-description, .page-lottery__step-description {
  color: #555555;
}

.page-lottery__faq-answer {
  background: #f9f9f9;
  color: #333333;
}

.page-lottery__faq-answer p {
  color: #333333;
}

.page-lottery__faq-question {
  background: #0A246A;
  color: #ffffff;
}

.page-lottery__faq-question h3 {
  color: #ffffff;
}