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

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  background-color: #26A9E0; /* Fallback for image */
}

.page-lottery__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-lottery__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
}

.page-lottery__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-lottery__btn-primary:hover {
  background-color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-lottery__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-lottery__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-lottery__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

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

.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-lottery__section-intro {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-lottery__content-block {
  margin-bottom: 40px;
  text-align: left;
}

.page-lottery__content-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: left;
}

.page-lottery__content-block p,
.page-lottery__strategy-block p {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  text-align: left;
}

.page-lottery__list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 20px;
}

.page-lottery__list-item {
  background-color: #f9f9f9;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 4px;
  font-size: 1em;
  color: #333333;
}

.page-lottery__list-item strong {
  color: #26A9E0;
}

.page-lottery__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

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

.page-lottery__how-to-play {
  background-color: #f0f8ff;
}

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

.page-lottery__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__step-item .page-lottery__btn-primary {
  align-self: flex-start;
  margin-top: 25px;
  padding: 10px 20px;
  font-size: 1em;
}

.page-lottery__advantages {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-lottery__advantages .page-lottery__section-title {
  color: #ffffff;
}

.page-lottery__advantages .page-lottery__section-intro {
  color: #e0e0e0;
}

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

.page-lottery__feature-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-lottery__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-lottery__feature-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-lottery__strategy {
  background-color: #ffffff;
}

.page-lottery__strategy-block {
  margin-bottom: 40px;
  text-align: left;
}

.page-lottery__strategy-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: left;
}

.page-lottery__faq {
  background-color: #f0f8ff;
}

.page-lottery__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-lottery__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: #f5f5f5;
}

.page-lottery__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg); /* Changes + to X or similar */
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-lottery__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-lottery__conclusion {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-lottery__conclusion .page-lottery__section-title {
  color: #ffffff;
}

.page-lottery__conclusion .page-lottery__section-intro {
  color: #e0e0e0;
  margin-bottom: 40px;
}

/* Global image styles */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__content-subtitle,
  .page-lottery__strategy-subtitle {
    font-size: 1.6em;
  }
  .page-lottery__feature-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__section {
    padding: 60px 0;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__section-intro {
    font-size: 0.95em;
  }
  .page-lottery__content-subtitle,
  .page-lottery__strategy-subtitle {
    font-size: 1.4em;
  }
  .page-lottery__feature-title {
    font-size: 1.2em;
  }

  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__step-item,
  .page-lottery__feature-item,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-lottery__faq-question,
  .page-lottery__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }
  .page-lottery__hero-description {
    font-size: 0.9em;
  }
  .page-lottery__section-title {
    font-size: 1.6em;
  }
  .page-lottery__content-subtitle,
  .page-lottery__strategy-subtitle {
    font-size: 1.2em;
  }
  .page-lottery__step-grid,
  .page-lottery__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__step-item,
  .page-lottery__feature-item {
    padding: 20px;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-answer {
    padding: 10px 15px;
  }
}