/* style/lottery.css */
:root {
  --page-lottery-primary-color: #FF8C1A;
  --page-lottery-secondary-color: #FFA53A;
  --page-lottery-card-bg: #17191F;
  --page-lottery-bg: #0D0E12;
  --page-lottery-text-main: #FFF3E6;
  --page-lottery-border-color: #A84F0C;
  --page-lottery-glow-color: #FFB04D;
  --page-lottery-deep-orange: #D96800;
}

.page-lottery {
  background-color: var(--page-lottery-bg);
  color: var(--page-lottery-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px;
  text-align: center;
  background-color: var(--page-lottery-bg);
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-lottery__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-lottery-glow-color);
  margin-bottom: 20px;
  /* clamp for responsive font-size, avoiding fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-lottery__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--page-lottery-text-main);
}

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

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

.page-lottery__btn-primary {
  background: linear-gradient(180deg, var(--page-lottery-secondary-color) 0%, var(--page-lottery-deep-orange) 100%);
  color: var(--page-lottery-text-main);
  border: 2px solid var(--page-lottery-secondary-color);
}

.page-lottery__btn-primary:hover {
  background: linear-gradient(180deg, var(--page-lottery-deep-orange) 0%, var(--page-lottery-secondary-color) 100%);
  border-color: var(--page-lottery-glow-color);
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: var(--page-lottery-glow-color);
  border: 2px solid var(--page-lottery-glow-color);
}

.page-lottery__btn-secondary:hover {
  background-color: var(--page-lottery-glow-color);
  color: var(--page-lottery-bg);
}

.page-lottery__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px;
  background-color: var(--page-lottery-bg);
  text-align: center;
}

.page-lottery__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-lottery__video-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.page-lottery__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-lottery__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--page-lottery-bg);
  color: var(--page-lottery-text-main);
}

.page-lottery__dark-bg {
  background-color: var(--page-lottery-bg);
  color: var(--page-lottery-text-main);
}

.page-lottery__dark-section {
  background-color: var(--page-lottery-bg);
  color: var(--page-lottery-text-main);
}

.page-lottery__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--page-lottery-primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-lottery__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-lottery-text-main);
}

.page-lottery__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--page-lottery-secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-lottery__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-lottery-text-main);
}

.page-lottery__list li {
  margin-bottom: 10px;
}

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

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

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-lottery__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--page-lottery-glow-color);
  margin-bottom: 10px;
}

.page-lottery__card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--page-lottery-text-main);
}

.page-lottery__steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-lottery__steps-list li {
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-lottery__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--page-lottery-primary-color);
  color: var(--page-lottery-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.page-lottery__steps-list li .page-lottery__sub-title {
  margin-top: 0;
  font-size: 1.6rem;
}

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

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

.page-lottery__promotion-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

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

.page-lottery__promotion-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-lottery__promotion-content .page-lottery__card-title {
  text-align: left;
  color: var(--page-lottery-glow-color);
}

.page-lottery__promotion-content p {
  text-align: left;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__promotion-content .page-lottery__btn-primary,
.page-lottery__promotion-content .page-lottery__btn-secondary {
  align-self: flex-start;
  width: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.page-lottery__security-item {
  background-color: var(--page-lottery-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--page-lottery-border-color);
  color: var(--page-lottery-text-main);
}

.page-lottery__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--page-lottery-bg);
  color: var(--page-lottery-text-main);
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--page-lottery-glow-color);
  background-color: var(--page-lottery-card-bg);
  position: relative;
  list-style: none; /* For details summary */
}

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

.page-lottery__faq-question .page-lottery__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-lottery-primary-color);
  transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-lottery-text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-lottery__faq-item[open] .page-lottery__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
}

/* Fallback for non-details elements (if using JS for div structure) */
.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 500px !important; /* Ensure it overrides any max-height:0 */
}

.page-lottery__faq-item.active .page-lottery__faq-question .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  background-color: var(--page-lottery-bg);
  color: var(--page-lottery-text-main);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }
  .page-lottery__section-title {
    font-size: 2rem;
  }
  .page-lottery__sub-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section,
  .page-lottery__video-section,
  .page-lottery__content-area,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-lottery__description {
    font-size: 1rem;
  }

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

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-lottery__hero-image-wrapper,
  .page-lottery__video-container,
  .page-lottery__video-wrapper,
  .page-lottery__card,
  .page-lottery__promotion-card,
  .page-lottery__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive */
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__card-image,
  .page-lottery__promotion-image,
  .page-lottery__security-icon {
    height: auto !important; /* Ensure images scale proportionally */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-lottery__promotion-card {
    flex-direction: column;
  }

  .page-lottery__promotion-content .page-lottery__btn-primary,
  .page-lottery__promotion-content .page-lottery__btn-secondary {
    width: 100%;
    align-self: center;
  }

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

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

  .page-lottery__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-lottery__card-grid,
  .page-lottery__promotion-grid,
  .page-lottery__security-features {
    grid-template-columns: 1fr;
  }
  .page-lottery__card-image,
  .page-lottery__promotion-image {
    height: 180px; /* Adjust height for smaller screens */
  }
}