/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #0d0d0d; /* Assuming a dark body background from shared.css */
  --card-background: #ffffff;
  --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); /* Ensure contrast with text */
}

/* Fixed header padding adjustment */
.page-lottery__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

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

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

.page-lottery__container--center {
  text-align: center;
}

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

.page-lottery__link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--background-dark), rgba(0,0,0,0.8)); /* Dark overlay for text contrast */
}

.page-lottery__hero-image-item {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-lottery__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.page-lottery__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  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);
}

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

.page-lottery__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
  margin-top: 40px;
}

/* Section Titles */
.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

/* Text Blocks */
.page-lottery__text-block {
  font-size: 17px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__text-block h3 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-lottery__text-block p {
  margin-bottom: 15px;
}

.page-lottery__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-lottery__text-block li {
  margin-bottom: 8px;
}

.page-lottery__text-block--center {
  text-align: center;
}

/* Light Background Sections */
.page-lottery__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__section-title {
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__highlight {
  color: var(--secondary-color);
}

.page-lottery__light-bg .page-lottery__link {
  color: var(--primary-color);
}

.page-lottery__light-bg .page-lottery__link:hover {
  color: var(--secondary-color);
}

/* Dark Background Sections */
.page-lottery__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery__dark-bg .page-lottery__section-title {
  color: var(--text-light);
}

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

.page-lottery__card {
  background: var(--card-background);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery__card-image {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__card-icon {
  max-width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-lottery__card-text {
  font-size: 16px;
  line-height: 1.7;
}

/* Registration Steps */
.page-lottery__steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__step-item {
  flex: 1;
  min-width: 250px;
  background: var(--card-background);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.page-lottery__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 4px solid var(--background-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-lottery__step-description {
  font-size: 16px;
  line-height: 1.6;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  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;
  background: var(--background-dark);
  color: var(--text-light);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Ensure content expands */
  padding: 20px !important;
  opacity: 1;
  background: #2a2a2a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--background-dark);
  color: var(--text-light);
  border: 1px solid #333;
  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: #1a1a1a;
  border-color: #555;
}

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

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

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-light);
  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); /* Rotate for 'x' effect */
}

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

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

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

  .page-lottery__steps {
    flex-direction: column;
    align-items: center;
  }

  .page-lottery__step-item {
    width: 80%;
    max-width: 400px;
  }
}

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

  .page-lottery__section {
    padding: 40px 15px;
  }

  .page-lottery__hero-title {
    font-size: 32px;
  }

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

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

  .page-lottery__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }

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

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

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

  .page-lottery__grid {
    gap: 20px;
  }

  .page-lottery__card {
    padding: 25px;
  }

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

  .page-lottery__card-image, .page-lottery__card-icon {
    height: 200px;
  }

  .page-lottery__step-item {
    width: 100%;
    padding: 25px;
    padding-top: 70px;
  }

  .page-lottery__step-number {
    width: 45px;
    height: 45px;
    font-size: 24px;
    top: -20px;
  }

  .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;
  }

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