.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: var(--background-color, #0A0A0A); /* Inherit from shared or use default dark */
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
  z-index: 1;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px 60px;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0) 100%);
  border-radius: 10px;
}

.page-lottery__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

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

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-lottery__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-lottery__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color */
  border: 2px solid #FFD36B;
}

.page-lottery__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
}

.page-lottery__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-lottery__section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-lottery__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF6D6;
  text-align: left;
}

.page-lottery__highlight {
  color: #FFD36B;
  font-weight: 700;
}

.page-lottery__introduction-section {
  background-color: #0A0A0A;
}

.page-lottery__types-section {
  background-color: #111111; /* Card BG */
}

.page-lottery__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-lottery__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-lottery__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-lottery__card {
  background-color: #1A1A1A; /* Slightly lighter card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border color */
}

.page-lottery__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-lottery__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-lottery__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-lottery__card-link {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-lottery__card-link:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

.page-lottery__dark-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-lottery__benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-top: 40px;
}

.page-lottery__benefit-item {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-lottery__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__benefit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-lottery__benefit-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-lottery__guide-section {
  background-color: #0A0A0A;
}

.page-lottery__guide-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: left;
}

.page-lottery__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-lottery__step-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-lottery__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.page-lottery__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 5px;
}

.page-lottery__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-lottery__guide-image-wrapper {
  padding: 20px;
}

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

.page-lottery__cta-block {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #3A2A12;
}

.page-lottery__tips-section {
  background-color: #111111;
}

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

.page-lottery__tip-item {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
}

.page-lottery__tip-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-lottery__tip-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-lottery__faq-section {
  background-color: #0A0A0A;
}

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

.page-lottery__faq-item {
  background-color: #1A1A1A;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E;
  cursor: pointer;
  background-color: #1A1A1A;
  list-style: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

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

.page-lottery__faq-qtext {
  flex-grow: 1;
  color: #F2C14E;
}

.page-lottery__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: #FFD36B;
  margin-left: 20px;
  line-height: 1;
}

.page-lottery__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-lottery__faq-item[open] .page-lottery__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

.page-lottery__faq-item[open] .page-lottery__faq-question {
  background-color: #222222;
}

.page-lottery__conclusion-section {
  background-color: #111111;
  padding-bottom: 100px;
}

.page-lottery__footer {
  background-color: #0A0A0A;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #3A2A12;
}

.page-lottery__copyright {
  font-size: 0.9rem;
  color: #FFF6D6;
}

/* General image responsive */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Card layout images */
.page-lottery__lottery-type-card .page-lottery__card-image,
.page-lottery__benefit-item .page-lottery__benefit-icon {
  min-width: 200px;
  min-height: 200px;
  width: 100%;
  height: auto; /* Allow auto height to maintain aspect ratio */
}

/* Ensure content area images are never too small */
.page-lottery__container img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-lottery__section-title {
    font-size: 2.2rem;
  }
  .page-lottery__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-lottery__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
  .page-lottery__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding */
  }

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

  .page-lottery__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    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__section {
    padding: 40px 15px;
  }

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

  .page-lottery__text-block {
    font-size: 0.95rem;
  }

  .page-lottery__grid--3-cols,
  .page-lottery__grid--2-cols,
  .page-lottery__benefits-grid,
  .page-lottery__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card-image {
    height: 200px; /* Adjust height for mobile cards */
  }

  .page-lottery__card-title {
    font-size: 1.5rem;
  }

  .page-lottery__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery__guide-image-wrapper {
    order: -1; /* Image above steps on mobile */
    padding: 0;
    margin-bottom: 30px;
  }

  .page-lottery__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .page-lottery__step-number {
    margin-bottom: 10px;
  }

  .page-lottery__tip-title {
    font-size: 1.3rem;
  }

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

  .page-lottery__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px;
  }

  /* Universal image responsive for content area */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers for images and buttons */
  .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__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__tips-list {
    padding-left: 0;
    padding-right: 0;
  }
  .page-lottery__footer .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}