/* style/lottery.css */

:root {
  --page-lottery-primary-color: #FFD700; /* Gold */
  --page-lottery-secondary-color: #000080; /* Navy Blue */
  --page-lottery-text-light: #ffffff;
  --page-lottery-text-dark: #333333;
  --page-lottery-bg-dark: #0a0a0a;
  --page-lottery-card-bg: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark bg */
  --page-lottery-border-color: rgba(255, 255, 255, 0.15);
  --page-lottery-transition-speed: 0.3s;
}

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

/* Fixed navigation bar spacing for the first content module */
.page-lottery__hero-banner {
  padding-top: 120px; /* Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    padding-top: 100px; /* Adjust for mobile fixed header */
  }
}

.page-lottery__hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--page-lottery-secondary-color) 0%, #00004d 100%);
  color: var(--page-lottery-text-light);
  overflow: hidden;
}

.page-lottery__hero-content {
  max-width: 600px;
  text-align: center;
  z-index: 1;
  position: relative;
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-lottery-primary-color);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  line-height: 1.2;
}

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

.page-lottery__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--page-lottery-primary-color);
  color: var(--page-lottery-text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color var(--page-lottery-transition-speed) ease, transform var(--page-lottery-transition-speed) ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.page-lottery__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(50%);
}

.page-lottery__section {
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--page-lottery-border-color);
}

.page-lottery__section:last-of-type {
  border-bottom: none;
}

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

.page-lottery__heading {
  font-size: 2.5em;
  color: var(--page-lottery-primary-color);
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-lottery__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-lottery-text-light);
}

.page-lottery__paragraph strong {
  color: var(--page-lottery-primary-color);
}

.page-lottery__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-lottery__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-lottery__card {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  transition: transform var(--page-lottery-transition-speed) ease, box-shadow var(--page-lottery-transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-lottery__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.page-lottery__card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-lottery__card-title {
  font-size: 1.6em;
  color: var(--page-lottery-primary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-lottery__card-text {
  font-size: 1em;
  color: var(--page-lottery-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--page-lottery-primary-color);
  color: var(--page-lottery-text-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color var(--page-lottery-transition-speed) ease, transform var(--page-lottery-transition-speed) ease;
  align-self: flex-start;
}

.page-lottery__card-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-lottery__feature-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  height: 100%;
}

.page-lottery__feature-title {
  font-size: 1.5em;
  color: var(--page-lottery-primary-color);
  margin-bottom: 10px;
}

.page-lottery__feature-text {
  font-size: 1em;
  color: var(--page-lottery-text-light);
}

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

.page-lottery__step-card {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform var(--page-lottery-transition-speed) ease, box-shadow var(--page-lottery-transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__step-title {
  font-size: 1.4em;
  color: var(--page-lottery-primary-color);
  margin-bottom: 15px;
}

.page-lottery__step-text {
  font-size: 1em;
  color: var(--page-lottery-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--page-lottery-primary-color);
  color: var(--page-lottery-text-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1em;
  transition: background-color var(--page-lottery-transition-speed) ease, transform var(--page-lottery-transition-speed) ease;
  margin-top: auto; /* Push button to bottom */
}

.page-lottery__button--small {
  font-size: 0.9em;
  padding: 8px 18px;
}

.page-lottery__button--large {
  font-size: 1.2em;
  padding: 18px 35px;
}

.page-lottery__button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-lottery__list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-lottery__list-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--page-lottery-text-light);
  transition: background-color var(--page-lottery-transition-speed) ease;
}

.page-lottery__list-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

/* FAQ styles */
.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--page-lottery-transition-speed) ease;
}

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

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

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

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(180deg);
  color: var(--page-lottery-text-light);
}

.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: rgba(255, 255, 255, 0.03);
  color: var(--page-lottery-text-light);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--page-lottery-border-color);
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-lottery-text-light);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__grid--2-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    min-height: 400px;
    padding: 60px 15px;
  }

  .page-lottery__hero-title {
    font-size: 2.5em;
  }

  .page-lottery__hero-description {
    font-size: 1em;
  }

  .page-lottery__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-lottery__heading {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-lottery__paragraph {
    font-size: 0.95em;
  }

  .page-lottery__grid--3-cols,
  .page-lottery__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery__card,
  .page-lottery__feature-item,
  .page-lottery__step-card {
    padding: 20px;
  }

  .page-lottery__card-title,
  .page-lottery__feature-title,
  .page-lottery__step-title {
    font-size: 1.3em;
  }

  .page-lottery__card-image,
  .page-lottery__step-image {
    height: 150px;
  }

  .page-lottery__list-item {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-lottery__faq-question h3 {
    font-size: 1.1em;
    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 specific styles to prevent overflow */
  .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;
  }
}