.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: var(--background-color, #ffffff);
}

.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Rely on body padding-top for header offset */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #ffffff;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-lottery__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  background-color: #ffffff; /* Use white background for text for contrast */
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-50px); /* Lift content slightly over the image */
  margin-bottom: -50px;
  position: relative;
  z-index: 1;
}

.page-lottery__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-lottery__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

.page-lottery__cta-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: 8px;
  text-decoration: none;
  font-weight: 700;
  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;
}

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

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

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

.page-lottery__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

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

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

.page-lottery__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-lottery__section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

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

.page-lottery__dark-bg .page-lottery__section-title,
.page-lottery__dark-bg .page-lottery__section-description,
.page-lottery__dark-bg .page-lottery__how-to-play-list li,
.page-lottery__dark-bg .page-lottery__promotion-card-title,
.page-lottery__dark-bg .page-lottery__promotion-card-text {
  color: #ffffff;
}

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

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

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

.page-lottery__lottery-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-lottery__lottery-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-lottery__lottery-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-lottery__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-lottery__how-to-play-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-lottery__how-to-play-text {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-lottery__how-to-play-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-lottery__how-to-play-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__how-to-play-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__how-to-play-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  position: relative;
  padding-left: 50px;
}

.page-lottery__how-to-play-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 15px;
  top: 15px;
  background-color: #ffffff;
  color: #26A9E0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-lottery__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__benefit-item {
  background-color: #ffffff;
  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;
}

.page-lottery__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-lottery__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: #f0f8ff;
  padding: 10px;
}

.page-lottery__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__benefit-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
}

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

.page-lottery__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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.15);
}

.page-lottery__promotion-card-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-lottery__promotion-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-lottery__promotion-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-lottery__promotions-cta {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6ff;
  list-style: none; /* For details/summary */
}

.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  content: '−';
}

.page-lottery__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #666666;
}

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

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

.page-lottery__conclusion-section .page-lottery__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-content {
    transform: translateY(-30px);
    margin-bottom: -30px;
    padding: 30px 20px;
  }

  .page-lottery__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-lottery__section {
    padding: 50px 0;
  }

  .page-lottery__how-to-play-container {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  .page-lottery__hero-content {
    transform: translateY(-20px);
    margin-bottom: -20px;
    padding: 25px 15px;
  }

  .page-lottery__main-title {
    font-size: 2.2rem !important;
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    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__cta-buttons,
  .page-lottery__button-group,
  .page-lottery__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-lottery__section {
    padding: 40px 0;
  }

  .page-lottery__content-area {
    padding: 0 15px;
  }

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

  .page-lottery__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-lottery__lottery-grid,
  .page-lottery__benefits-list,
  .page-lottery__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* General image responsiveness for content area */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-lottery__lottery-card-image,
  .page-lottery__how-to-play-image,
  .page-lottery__benefit-icon,
  .page-lottery__promotion-card-image {
    height: auto !important;
    max-height: 250px;
  }

  /* Containers with images */
  .page-lottery__hero-image-wrapper,
  .page-lottery__how-to-play-image-wrapper,
  .page-lottery__lottery-card,
  .page-lottery__benefit-item,
  .page-lottery__promotion-card,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__how-to-play-list li {
    padding-left: 40px;
    font-size: 0.95rem;
  }

  .page-lottery__how-to-play-list li::before {
    width: 25px;
    height: 25px;
    font-size: 1rem;
    left: 10px;
    top: 10px;
  }

  .page-lottery__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-lottery__faq-toggle {
    font-size: 1.2rem;
  }

  .page-lottery__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px 15px;
  }
}