/* style/lottery.css */
.page-lottery {
  --bg-dark: #08160F;
  --bg-card: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark); /* Fallback, actual body background from shared.css */
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-lottery__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-lottery__btn-primary--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

.page-lottery__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border-color: var(--gold-color);
}

.page-lottery__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.page-lottery__btn-secondary--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure minimum height */
}

.page-lottery__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Adjust to bring content slightly over image */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
}

.page-lottery__main-title {
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

/* Intro Section */
.page-lottery__intro-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  border-bottom: 1px solid var(--divider-color);
}

.page-lottery__intro-section .page-lottery__section-title {
  color: var(--text-main);
}

.page-lottery__intro-section .page-lottery__text-block {
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Lottery Types Section */
.page-lottery__types-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  color: var(--text-main);
}

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

.page-lottery__card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-lottery__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-lottery__card-text {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Guide Section */
.page-lottery__guide-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

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

.page-lottery__guide-steps {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-lottery__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-left: 60px;
  position: relative;
}

.page-lottery__step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--btn-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.4);
}

.page-lottery__step-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 5px;
}

.page-lottery__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-lottery__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-lottery__guide-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

/* Strategies Section */
.page-lottery__strategies-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  color: var(--text-main);
}

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

.page-lottery__strategy-item {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__strategy-heading {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-lottery__strategy-text {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

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

.page-lottery__promotion-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-lottery__promotion-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-lottery__promotion-text {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  color: var(--text-main);
}

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

.page-lottery__faq-item {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
  list-style: none;
}

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

.page-lottery__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

.page-lottery__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-lottery__faq-answer p {
  margin-bottom: 10px;
}

.page-lottery__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-lottery__faq-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

/* CTA Section */
.page-lottery__cta-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  text-align: center;
}

.page-lottery__cta-section .page-lottery__section-title {
  color: var(--text-main);
}

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

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-lottery__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-lottery__hero-section {
    padding-bottom: 40px;
  }

  .page-lottery__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-lottery__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-lottery__btn-primary--center,
  .page-lottery__btn-secondary--center {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__strategies-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    padding: 50px 0;
  }

  .page-lottery__card-image,
  .page-lottery__guide-image,
  .page-lottery__promotion-image,
  .page-lottery__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-lottery__card,
  .page-lottery__promotion-card {
    padding: 20px;
  }

  .page-lottery__guide-content {
    flex-direction: column-reverse;
  }

  .page-lottery__guide-steps {
    order: 2;
  }

  .page-lottery__guide-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .page-lottery__step-item {
    padding-left: 50px;
    margin-bottom: 25px;
  }

  .page-lottery__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .page-lottery__strategy-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-lottery__faq-answer {
    padding: 10px 20px;
  }
  
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__strategies-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section,
  .page-lottery__card,
  .page-lottery__promotion-card,
  .page-lottery__strategy-item,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-lottery__hero-image-wrapper,
  .page-lottery__guide-image-wrapper,
  .page-lottery__faq-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

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

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

  .page-lottery__hero-content {
    margin-top: -30px;
  }
}