.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #f8f8f8;
}

.page-lottery__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-lottery__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-lottery__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
  max-width: 60%;
  text-align: left;
}

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

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

.page-lottery__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-lottery__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-lottery__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-lottery__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 40%;
}

.page-lottery__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #1A202C;
}

.page-lottery__dark-section .page-lottery__section-title {
  color: #FFD700;
}

.page-lottery__section-subtitle {
  font-size: 1.3em;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-lottery__dark-section .page-lottery__section-subtitle {
  color: #cccccc;
}

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-lottery__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-lottery__link {
  color: #1A202C;
  text-decoration: underline;
}

.page-lottery__dark-section .page-lottery__link {
  color: #FFD700;
}

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

.page-lottery__card {
  background-color: #2a334a; /* Darker background for cards on dark section */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-lottery__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-lottery__card-link {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__card-link:hover {
  text-decoration: underline;
}

.page-lottery__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-lottery__step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #1A202C;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-lottery__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-lottery__step-text {
  font-size: 1em;
  color: #555555;
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-lottery__content-with-image {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-lottery__image-aside {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-lottery__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__promo-card {
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-lottery__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-lottery__promo-text {
  font-size: 1em;
  color: #555555;
}

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

.page-lottery__feature-item {
  background-color: #2a334a; /* Darker background for cards on dark section */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-lottery__feature-icon {
  max-width: 200px;
  min-width: 200px;
  height: 200px;
  min-height: 200px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-lottery__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-lottery__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-lottery__faq-list {
  margin-top: 40px;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #1A202C;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px;
}

.page-lottery__faq-answer p {
  margin-bottom: 10px;
  color: #555555;
}

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

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

  .page-lottery__hero-content {
    max-width: 55%;
  }

  .page-lottery__hero-image-wrapper {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery__container {
    padding: 20px 15px;
  }

  .page-lottery__hero-section {
    flex-direction: column;
    text-align: center;
    min-height: unset;
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-lottery__hero-content {
    padding-right: 0;
    max-width: 100%;
  }

  .page-lottery__hero-title {
    font-size: 2.2em;
    margin-top: 20px;
  }

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

  .page-lottery__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    max-width: 100% !important;
    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__hero-image-wrapper {
    max-width: 100%;
    margin-top: 30px;
  }

  .page-lottery__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__section-title {
    font-size: 1.8em;
  }

  .page-lottery__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery__cards-grid,
  .page-lottery__steps-grid,
  .page-lottery__promo-grid,
  .page-lottery__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card-image,
  .page-lottery__promo-image {
    height: 180px;
  }

  .page-lottery__content-with-image {
    flex-direction: column;
    gap: 20px;
  }

  .page-lottery__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__strategy-section,
  .page-lottery__promotions-section,
  .page-lottery__why-choose-us-section,
  .page-lottery__faq-section,
  .page-lottery__promo-card,
  .page-lottery__feature-item,
  .page-lottery__step-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 {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-lottery__faq-answer {
    padding: 0 20px;
  }

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