.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-lottery__container--center {
  text-align: center;
}

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

.page-lottery__section-title {
  font-size: 3em;
  font-weight: 700;
  color: #FF8C1A; /* Primary Color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.4);
}

.page-lottery h2.page-lottery__section-title {
  font-size: clamp(2.2em, 4vw, 3em);
}

.page-lottery h3 {
  font-size: 1.8em;
  color: #FFA53A; /* Secondary Color */
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(255, 165, 58, 0.3);
}

.page-lottery p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-lottery a {
  color: #FF8C1A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery a:hover {
  color: #FFA53A;
  text-decoration: underline;
}

/* HERO Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-lottery__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-lottery__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px 0;
}

.page-lottery__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive H1 font size */
  font-weight: 800;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__intro-text {
  font-size: 1.3em;
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button Gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__cta-button:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-lottery__cta-button--secondary {
  background: #17191F; /* Card BG */
  border: 2px solid #FFA53A;
  color: #FFA53A;
  box-shadow: none;
}

.page-lottery__cta-button--secondary:hover {
  background: #2a2d38;
  color: #FFB04D;
  border-color: #FFB04D;
}

.page-lottery__cta-button--full-width {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__cta-button--large {
  padding: 18px 50px;
  font-size: 1.4em;
}

/* Game Grid Section */
.page-lottery__game-grid, .page-lottery__promo-grid, .page-lottery__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__game-card, .page-lottery__promo-card, .page-lottery__support-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__game-card:hover, .page-lottery__promo-card:hover, .page-lottery__support-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(255, 140, 26, 0.3);
}

.page-lottery__game-card img, .page-lottery__promo-card img, .page-lottery__support-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-top: 0;
}

/* Guide Section */
.page-lottery__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-lottery__guide-steps {
  flex: 2;
  min-width: 300px;
}

.page-lottery__guide-image {
  flex: 1;
  min-width: 280px;
}

.page-lottery__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__step-item {
  background: rgba(255, 165, 58, 0.05); /* Light orange tint */
  border-left: 5px solid #FF8C1A;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-lottery__step-item h3 {
  color: #FF8C1A;
  font-size: 1.3em;
  margin-top: 0;
}

.page-lottery__cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 20px;
}

/* Tips Section */
.page-lottery__tips-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__tip-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__tip-item h3 {
  color: #FFB04D;
  font-size: 1.4em;
  margin-top: 0;
}

/* FAQ Section */
details.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
details.page-lottery__faq-item summary.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
  font-weight: 600;
}
details.page-lottery__faq-item summary.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}
details.page-lottery__faq-item summary.page-lottery__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}
.page-lottery__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open].page-lottery__faq-item .page-lottery__faq-toggle {
  transform: rotate(45deg);
}
details.page-lottery__faq-item .page-lottery__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 12px 12px;
  color: #FFF3E6;
  font-size: 1em;
}

/* Bottom CTA Section */
.page-lottery__section--cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__section-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }
  .page-lottery h3 {
    font-size: 1.6em;
  }
  .page-lottery p {
    font-size: 1em;
  }
  .page-lottery__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-lottery__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }
  .page-lottery__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-image img {
    border-radius: 8px;
  }
  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
    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-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__cta-button--full-width {
    width: 100%;
  }
  .page-lottery__game-grid, .page-lottery__promo-grid, .page-lottery__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__guide-content {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .page-lottery__guide-steps, .page-lottery__guide-image {
    min-width: unset;
    width: 100%;
  }
  .page-lottery__game-card, .page-lottery__promo-card, .page-lottery__support-item, .page-lottery__tip-item, details.page-lottery__faq-item {
    padding: 20px;
    border-radius: 8px;
  }
  details.page-lottery__faq-item summary.page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-qtext {
    font-size: 1em;
  }
  .page-lottery__faq-answer {
    padding: 0 20px 15px;
  }
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .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;
  }
  .page-lottery__section-title {
    margin-bottom: 30px;
  }
  .page-lottery h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .page-lottery__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-lottery__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-lottery__intro-text {
    font-size: 0.95em;
  }
  .page-lottery p {
    font-size: 0.9em;
  }
  .page-lottery__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-lottery__faq-qtext {
    font-size: 0.95em;
  }
}