.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: var(--background-color, #FFFFFF);
}

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

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px);
  background-color: #26A9E0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-lottery__hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 60px 0;
}

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

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

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-lottery__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.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.2;
}

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

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

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

.page-lottery__intro-section,
.page-lottery__how-to-play-section,
.page-lottery__promotions-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-lottery__types-section,
.page-lottery__tips-section,
.page-lottery__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-lottery__types-section .page-lottery__section-title,
.page-lottery__tips-section .page-lottery__section-title,
.page-lottery__faq-section .page-lottery__section-title {
  color: #FFFFFF;
}

.page-lottery__types-section .page-lottery__text-block,
.page-lottery__tips-section .page-lottery__text-block,
.page-lottery__faq-section .page-lottery__text-block {
  color: #FFFFFF;
}

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

.page-lottery__type-card,
.page-lottery__step-card,
.page-lottery__tip-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  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;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__type-card:hover,
.page-lottery__step-card:hover,
.page-lottery__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-lottery__tip-card .page-lottery__card-title {
  color: #26A9E0;
}

.page-lottery__card-text,
.page-lottery__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-lottery__cta-block .page-lottery__text-block {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-lottery__promotion-banner {
  text-align: center;
  margin: 40px 0;
}

.page-lottery__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

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

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

.page-lottery__promotion-item .page-lottery__list-text {
  color: #555555;
}

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

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

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

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

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

.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);
}

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

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

.page-lottery__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-lottery__contact-cta {
  text-align: center;
  margin-top: 40px;
}

.page-lottery__contact-cta .page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

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

  .page-lottery__hero-content {
    padding: 40px 0;
  }

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

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

  .page-lottery__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-lottery__subsection-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-lottery__text-block {
    font-size: 1em;
  }

  .page-lottery__intro-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__types-section,
  .page-lottery__tips-section,
  .page-lottery__faq-section {
    padding: 60px 0;
  }

  .page-lottery__grid-container,
  .page-lottery__steps-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Images responsiveness */
  .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__how-to-play-section,
  .page-lottery__tips-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__hero-image-wrapper,
  .page-lottery__promotion-banner,
  .page-lottery__grid-container,
  .page-lottery__steps-wrapper,
  .page-lottery__cta-block,
  .page-lottery__faq-list,
  .page-lottery__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Buttons responsiveness */
  .page-lottery__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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: 12px 20px;
  }

  .page-lottery__cta-block .page-lottery__btn-primary,
  .page-lottery__cta-block .page-lottery__btn-secondary,
  .page-lottery__type-card .page-lottery__btn-primary,
  .page-lottery__contact-cta .page-lottery__btn-secondary {
    width: auto !important; /* Allow buttons to size to content if not full width */
    max-width: 100% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

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

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

  .page-lottery__subsection-title {
    font-size: 1.3em;
  }

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