.page-lottery {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #2F6BFF;
  color: #FFFFFF;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-lottery__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #FFFFFF;
  /* clamp for responsive font size without fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-lottery__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-lottery__cta-button--secondary {
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Slightly different gradient for secondary */
}

.page-lottery__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-lottery__about-section, .page-lottery__how-to-play-section, .page-lottery__why-choose-section, .page-lottery__promotions-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-lottery__about-section .page-lottery__text-content, .page-lottery__how-to-play-section .page-lottery__text-content, .page-lottery__promotions-section .page-lottery__text-content {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #1F2D3D;
}

.page-lottery__image-text-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-lottery__content-image {
  max-width: 100%;
  width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-lottery__feature-list, .page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 450px;
}

.page-lottery__feature-item, .page-lottery__step-item {
  background-color: #FFFFFF;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1F2D3D;
  border-left: 5px solid #2F6BFF;
}

.page-lottery__step-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
}

.page-lottery__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2F6BFF;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-lottery__why-choose-section {
  background-color: #FFFFFF;
}

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

.page-lottery__reason-card {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
}

.page-lottery__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-lottery__why-choose-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-lottery__promotions-section {
  text-align: center;
  background-color: #F4F7FB;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-lottery__image-text-group {
    flex-direction: column;
    gap: 30px;
  }
  .page-lottery__feature-list, .page-lottery__steps-list {
    max-width: 100%;
    text-align: center;
  }
  .page-lottery__step-item {
    padding-left: 20px;
  }
  .page-lottery__step-item::before {
    position: static;
    transform: none;
    margin-right: 10px;
    display: inline-flex;
    vertical-align: middle;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-lottery__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-lottery__hero-description {
    font-size: 1rem;
  }
  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-lottery__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    padding-top: 30px;
  }
  .page-lottery__about-section, .page-lottery__how-to-play-section, .page-lottery__why-choose-section, .page-lottery__promotions-section {
    padding: 40px 0;
  }
  .page-lottery__text-content {
    font-size: 0.95rem;
  }
  .page-lottery__content-image, .page-lottery__why-choose-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-lottery__feature-item, .page-lottery__step-item {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
  .page-lottery__reason-card {
    padding: 20px;
  }
  .page-lottery__card-title {
    font-size: 1.15rem;
  }
  .page-lottery__card-text {
    font-size: 0.9rem;
  }

  /* Mandatory rule for content area images on mobile */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-section {
    padding-top: 5px;
  }
  .page-lottery__main-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }
  .page-lottery__hero-description {
    font-size: 0.9rem;
  }
  .page-lottery__cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .page-lottery__section-title {
    font-size: clamp(1.4rem, 8vw, 1.8rem);
  }
  .page-lottery__container {
    padding: 15px;
  }
}