.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  overflow: hidden;
}

.page-lottery__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-lottery__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

.page-lottery__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-lottery__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-lottery__section {
  padding: 60px 20px;
}

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

.page-lottery__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-lottery__dark-bg .page-lottery__paragraph,
.page-lottery__dark-bg .page-lottery__list-item {
  color: #f0f0f0;
}

.page-lottery__dark-bg .page-lottery__section-title {
  color: #FFFFFF;
}

.page-lottery__dark-bg .page-lottery__sub-title {
  color: #FFFFFF;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  font-weight: bold;
}

.page-lottery__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-lottery__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-lottery__text-content {
  text-align: left;
}

.page-lottery__sub-title {
  font-size: 1.8em;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  overflow: hidden;
}

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

.page-lottery__card-image {
  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: #26A9E0;
}

.page-lottery__card-description {
  font-size: 1em;
  color: #555555;
}

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

.page-lottery__step-item {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-lottery__list-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  border-left: 4px solid #EA7C07;
}

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

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

.page-lottery__promotion-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-lottery__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-lottery__promotion-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

.page-lottery__promotion-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-lottery__btn-text-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.page-lottery__btn-text-link:hover {
  color: #d46f06;
}

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

.page-lottery__info-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__info-card-title {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-lottery__info-card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-lottery__info-card .page-lottery__btn-text-link {
  color: #EA7C07;
}

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

.page-lottery__faq-item {
  background-color: #f8f8f8;
  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: 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: #f0f0f0;
}

.page-lottery__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

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

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

.page-lottery__faq-answer p {
  margin: 0;
  padding-bottom: 15px;
}

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

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

/* General responsive styles for images, videos, buttons */
.page-lottery img,
.page-lottery video {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-lottery a[class*="btn"],
.page-lottery a[class*="button"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-lottery__main-title {
    font-size: 2em;
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

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

  .page-lottery__image-text-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-lottery__sub-title {
    font-size: 1.5em;
  }

  .page-lottery__card-grid,
  .page-lottery__promotions-grid,
  .page-lottery__info-cards,
  .page-lottery__steps-guide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

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

  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-content,
  .page-lottery__hero-image-wrapper,
  .page-lottery__promotion-card,
  .page-lottery__info-card,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__faq-question,
  .page-lottery__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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