/* style/lottery.css */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  overflow-x: hidden;
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

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

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(8, 22, 15, 0.7); /* Slightly transparent dark background */
  border-radius: 10px;
  margin-top: 150px; /* Push content down over image */
  margin-bottom: 50px;
}

.page-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-lottery__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-lottery__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-lottery__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-lottery__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Border */
}

.page-lottery__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #F2FFF6;
  box-shadow: 0 0 15px rgba(46, 122, 78, 0.5);
}

.page-lottery__section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-lottery__section:last-of-type {
  border-bottom: none;
}

.page-lottery__dark-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-lottery__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-lottery__text-block {
  font-size: 1.1em;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__text-secondary {
  color: #A7D9B8;
}

.page-lottery__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-lottery__image-centered {
  display: block;
  margin: 30px auto;
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

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

.page-lottery__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
}

.page-lottery__card-image,
.page-lottery__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-lottery__card-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__card-description {
  font-size: 0.95em;
  color: #A7D9B8;
  line-height: 1.5;
}

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

.page-lottery__step-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  border: 1px solid #2E7A4E;
  position: relative;
  padding-top: 50px;
}

.page-lottery__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  border: 2px solid #2E7A4E;
}

.page-lottery__step-title {
  font-size: 1.3em;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__step-description {
  font-size: 0.9em;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-lottery__btn-text {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__btn-text:hover {
  color: #2AD16F;
}

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

.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-lottery__tips-list li {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.1em;
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
}

.page-lottery__list-icon {
  color: #2AD16F;
  font-size: 1.5em;
  line-height: 1;
}

.page-lottery__list-strong {
  color: #F2C14E; /* Gold */
}

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

.page-lottery__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  list-style: none; /* For details/summary */
}

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

.page-lottery__faq-question:hover {
  background-color: #13994A;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  color: #57E38D;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  line-height: 1.6;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-lottery__conclusion-section .page-lottery__cta-buttons {
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-lottery__hero-content {
    margin-top: 100px;
    margin-bottom: 30px;
    padding: 15px;
  }

  .page-lottery__main-title {
    font-size: 2em;
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

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

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

  .page-lottery__text-block {
    font-size: 1em;
  }

  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__card-grid,
  .page-lottery__promo-grid,
  .page-lottery__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-lottery__card-image,
  .page-lottery__promo-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-lottery__tips-list li {
    padding: 15px;
    font-size: 1em;
  }

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

  .page-lottery__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .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__hero-section,
  .page-lottery__hero-image-wrapper,
  .page-lottery__hero-content,
  .page-lottery__cta-buttons,
  .page-lottery__card-grid,
  .page-lottery__promo-grid,
  .page-lottery__steps-grid,
  .page-lottery__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-lottery__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}

/* Ensure minimum size for content images not related to specific class selectors */
.page-lottery img:not(.page-lottery__hero-image):not(.page-lottery__card-image):not(.page-lottery__promo-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Desktop video container width rule for flexbox */
.page-lottery__video-container {
  width: 100%; /* Must be present for desktop */
  max-width: 1200px; /* Example max-width */
}