.page-lottery {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --register-btn-text: #FFFF00;
  --login-btn-bg: #C30808;
  --login-btn-text: #FFFF00;
  --body-bg: #121212; /* Inherited from shared.css, ensuring consistency */
  --text-color: #ffffff; /* For dark background */

  background-color: var(--body-bg);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-lottery__section-title {
  color: var(--secondary-color);
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px);
}

.page-lottery__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-lottery__hero-section .page-lottery__container {
  position: relative;
  z-index: 2;
  color: var(--secondary-color);
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-lottery__btn-primary {
  background-color: var(--register-btn-bg);
  color: var(--register-btn-text);
  border: 2px solid var(--register-btn-bg);
}

.page-lottery__btn-primary:hover {
  background-color: darken(var(--register-btn-bg), 10%);
  border-color: darken(var(--register-btn-bg), 10%);
}

.page-lottery__btn-secondary {
  background-color: var(--login-btn-bg);
  color: var(--login-btn-text);
  border: 2px solid var(--login-btn-bg);
}

.page-lottery__btn-secondary:hover {
  background-color: darken(var(--login-btn-bg), 10%);
  border-color: darken(var(--login-btn-bg), 10%);
}

.page-lottery__btn-tertiary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-lottery__btn-tertiary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-lottery__intro-section,
.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__strategy-section,
.page-lottery__promotions-section,
.page-lottery__why-choose-section,
.page-lottery__faq-section {
  padding: 80px 0;
}

.page-lottery__text-block p {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: var(--text-color);
}

.page-lottery__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-lottery__text-block a:hover {
  text-decoration: underline;
}

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

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

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

.page-lottery__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
  padding: 0 15px;
}

.page-lottery__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-lottery__guide-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-lottery__guide-steps {
  flex: 1;
}

.page-lottery__step-item {
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
}

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

.page-lottery__guide-image {
  flex: 1;
  text-align: center;
}

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

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

.page-lottery__strategy-list li {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 45px;
  font-size: 1.1em;
}

.page-lottery__strategy-list li::before {
  content: '✓';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3em;
}

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

.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-lottery__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-lottery__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--secondary-color);
  padding: 0 15px;
}

.page-lottery__promo-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-lottery__cta-banner {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
}

.page-lottery__cta-text {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin: 0;
}

.page-lottery__cta-text a {
  color: var(--register-btn-text); /* Yellow for contrast */
  font-weight: bold;
  text-decoration: underline;
}

.page-lottery__cta-text a:hover {
  color: var(--secondary-color);
}

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

.page-lottery__advantage-list li {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 45px;
  font-size: 1.1em;
}

.page-lottery__advantage-list li::before {
  content: '★';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--register-btn-text); /* Yellow star for emphasis */
  font-weight: bold;
  font-size: 1.3em;
}

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

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

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-color);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-lottery__faq-q-text {
  margin: 0;
  color: var(--secondary-color);
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 25px;
}

/* Image specific styles */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__guide-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-lottery__guide-image {
    order: -1; /* Image above text on smaller screens */
  }
  .page-lottery__grid,
  .page-lottery__promos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__btn-tertiary {
    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__container {
    padding: 0 15px;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__strategy-section,
  .page-lottery__promotions-section,
  .page-lottery__why-choose-section,
  .page-lottery__faq-section {
    padding: 60px 0;
  }
  .page-lottery__card,
  .page-lottery__promo-card {
    margin: 0 10px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile responsive images */
  .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__guide-image,
  .page-lottery__promos-grid,
  .page-lottery__cta-banner,
  .page-lottery__hero-actions,
  .page-lottery__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-lottery__card-image, .page-lottery__promo-image {
    height: auto !important;
  }
}