/* style/lottery.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
  --border-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-light); /* Dark body background, so light text is default */
  background-color: var(--bg-dark);
}

/* Padding for fixed header */
.page-lottery__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

.page-lottery__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

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

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-lottery__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-lottery__cta-button:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.page-lottery__section {
  padding: 40px 20px;
  background-color: var(--bg-dark);
}

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

.page-lottery__card {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid var(--border-dark-mode);
}

.page-lottery__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.page-lottery__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-lottery__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-lottery__text-block {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-lottery__highlight {
  color: var(--accent-color);
  font-weight: bold;
}

.page-lottery__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-lottery__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #e0e0e0;
}

.page-lottery__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

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

.page-lottery__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__action-box {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin-top: 30px;
}

.page-lottery__action-box .page-lottery__text-block {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-lottery__action-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__action-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* FAQ Styles */
.page-lottery__faq-section {
  padding: 40px 20px;
}

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

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

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--accent-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 36px;
  }

  .page-lottery__section-title {
    font-size: 28px;
  }

  .page-lottery__card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }

  .page-lottery__hero-container,
  .page-lottery__container,
  .page-lottery__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__main-title {
    font-size: 30px;
  }

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

  .page-lottery__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

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

  .page-lottery__card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-lottery__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-lottery__sub-title {
    font-size: 20px;
  }

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

  .page-lottery__list-item::before {
    font-size: 18px;
  }

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

  .page-lottery__faq-question {
    padding: 15px;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}