/* style/lottery.css */

:root {
  --page-lottery-primary-color: #F2C14E;
  --page-lottery-secondary-color: #FFD36B;
  --page-lottery-card-bg: #111111;
  --page-lottery-background: #0A0A0A;
  --page-lottery-text-main: #FFF6D6;
  --page-lottery-border: #3A2A12;
  --page-lottery-glow: #FFD36B;
  --page-lottery-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

.page-lottery__card {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__dark-section {
  background-color: var(--page-lottery-background);
  color: var(--page-lottery-text-main);
  padding: 40px 0;
}

.page-lottery__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--page-lottery-primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-lottery__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--page-lottery-text-main);
}

.page-lottery__text-link {
  color: var(--page-lottery-secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* body handles --header-offset, this is decorative */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-lottery__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio, will be auto on mobile */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 100px; /* Adjust as needed to avoid overlapping image */
}

.page-lottery__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--page-lottery-secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-lottery__hero-description {
  font-size: 18px;
  color: var(--page-lottery-text-main);
  margin-bottom: 30px;
}

.page-lottery__hero-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: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-lottery__btn-primary {
  background: var(--page-lottery-button-gradient);
  color: #FFF6D6;
  border: 2px solid transparent;
}

.page-lottery__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-lottery__btn-secondary:hover {
  background: var(--page-lottery-secondary-color);
  color: var(--page-lottery-card-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* Content Images */
.page-lottery__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Types Section */
.page-lottery__type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

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

.page-lottery__type-title {
  font-size: 22px;
  color: var(--page-lottery-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__type-description {
  font-size: 16px;
  color: var(--page-lottery-text-main);
}

/* Guide Section */
.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__guide-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.page-lottery__guide-step-title {
  font-size: 20px;
  color: var(--page-lottery-secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery__guide-item p {
  font-size: 16px;
  color: var(--page-lottery-text-main);
}

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

/* Advantages Section */
.page-lottery__advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-lottery__advantages-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 8px;
  padding: 25px;
}

.page-lottery__advantages-title {
  font-size: 20px;
  color: var(--page-lottery-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Promotions Section */
.page-lottery__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__promo-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--page-lottery-text-main);
}

.page-lottery__promo-item strong {
  color: var(--page-lottery-secondary-color);
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 30px;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-lottery-primary-color);
  background-color: var(--page-lottery-card-bg);
  border-bottom: 1px solid var(--page-lottery-border);
}

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

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

.page-lottery__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-lottery__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--page-lottery-text-main);
  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: 15px;
}

.page-lottery__faq-item[open] .page-lottery__faq-question {
  border-bottom: none;
}

.page-lottery__faq-item details > summary {
  list-style: none;
}

.page-lottery__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Conclusion Section */
.page-lottery__cta-content {
  text-align: center;
  padding: 40px;
}

.page-lottery__cta-content .page-lottery__section-title {
  margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-image {
    height: 500px;
  }
  .page-lottery__hero-content {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__hero-image {
    height: 400px;
  }
  .page-lottery__hero-content {
    margin-top: 30px;
    padding: 15px;
  }

  .page-lottery__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-lottery__hero-description {
    font-size: 16px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-lottery__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-lottery__text-block {
    font-size: 15px;
  }

  /* Mobile Images */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__section, /* General section container */
  .page-lottery__card, /* Card containers */
  .page-lottery__container, /* Main content container */
  .page-lottery__hero-section, /* Hero section itself */
  .page-lottery__intro-section, 
  .page-lottery__types-section, 
  .page-lottery__guide-section, 
  .page-lottery__advantages-section, 
  .page-lottery__promotions-section, 
  .page-lottery__faq-section, 
  .page-lottery__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-lottery__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-lottery__type-grid,
  .page-lottery__advantages-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-lottery__type-item,
  .page-lottery__guide-item,
  .page-lottery__advantages-item,
  .page-lottery__promo-item,
  .page-lottery__faq-item {
    padding: 20px;
  }

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

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

  .page-lottery__cta-content {
    padding: 30px 15px;
  }

  .page-lottery__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-image {
    height: 300px;
  }
  .page-lottery__hero-content {
    margin-top: 15px;
  }
  .page-lottery__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .page-lottery__hero-description {
    font-size: 15px;
  }
}