/* style/lottery.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --background-light-grey: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body */
}

/* Ensure content is not hidden by fixed header */
.page-lottery__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on header height */
  padding-bottom: 60px;
}

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

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

/* Hero Banner */
.page-lottery__hero-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color) 70%, var(--secondary-color));
  color: var(--text-light);
}

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

.page-lottery__intro-text {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
}

/* Section Styling */
.page-lottery__light-bg {
  background-color: var(--background-light-grey);
  color: var(--text-dark);
}

.page-lottery__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-lottery__text-block {
  font-size: 17px;
  margin-bottom: 30px;
  text-align: justify;
}

/* Grid Container for Cards */
.page-lottery__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-lottery__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
}

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

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

.page-lottery__list {
  list-style: disc inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-dark);
}

.page-lottery__list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-lottery__list li strong {
  color: var(--primary-color);
}

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

.page-lottery__feature-item {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__feature-icon {
  width: 120px; /* Increased size */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery__feature-item p {
  font-size: 16px;
  color: var(--text-dark);
  text-align: justify;
}

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

/* FAQ Section */
.page-lottery__faq-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-lottery__faq-section .page-lottery__section-title {
  color: var(--text-light);
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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: var(--text-dark);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

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

.page-lottery__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-lottery__faq-question:active {
  background: #eeeeee;
}

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

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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(--secondary-color);
  transform: rotate(45deg); /* Change + to X visually */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 36px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__card-title {
    font-size: 22px;
  }
  .page-lottery__feature-title {
    font-size: 20px;
  }
  .page-lottery__intro-text {
    font-size: 16px;
  }
  .page-lottery__text-block, .page-lottery__list li, .page-lottery__feature-item p {
    font-size: 15px;
  }
  .page-lottery__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-lottery__faq-question h3 {
    font-size: 17px;
  }
  .page-lottery__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    padding-top: 160px !important; /* Mobile: Adjust based on mobile header height */
    padding-bottom: 40px;
  }
  .page-lottery__section {
    padding: 40px 15px;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__main-title {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 28px;
  }
  .page-lottery__intro-text {
    font-size: 15px;
  }
  .page-lottery__text-block, .page-lottery__list li, .page-lottery__feature-item p {
    font-size: 14px;
  }
  .page-lottery__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-lottery__grid-container, .page-lottery__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__card, .page-lottery__feature-item {
    padding: 20px;
  }
  .page-lottery__card-image, .page-lottery__feature-icon {
    margin-bottom: 15px;
  }
  .page-lottery__card-title {
    font-size: 20px;
  }
  .page-lottery__feature-title {
    font-size: 18px;
  }
  .page-lottery__list {
    padding-left: 15px;
  }
  .page-lottery__faq-section {
    padding: 40px 15px;
  }
  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-banner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-lottery__hero-banner .page-lottery__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}