/* style/lottery.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Navy Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0d0d0d; /* Assuming shared.css var(--dark-bg-1) is dark */
  --card-bg: rgba(255, 255, 255, 0.08); /* Light transparent for dark background */
  --border-color: rgba(255, 255, 255, 0.15);
}

.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(--bg-dark); /* Ensure body background is respected */
  padding-top: 100px; /* Adjust for fixed header on desktop */
}

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

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

.page-lottery__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00004d 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-color);
}

.page-lottery__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.page-lottery__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-lottery__cta-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-lottery__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-lottery__section:nth-of-type(even) {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-lottery__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-lottery__text-block {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.8;
}

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

.page-lottery__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-lottery__read-more-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.page-lottery__read-more-button:hover {
  background-color: #000066;
  border-color: #000066;
}

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

.page-lottery__card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-lottery__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__card-title a:hover {
  color: #e6c200;
}

.page-lottery__card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  flex-grow: 1;
}

.page-lottery__card-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__card-button:hover {
  background-color: #e6c200;
}

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

.page-lottery__step-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-lottery__step-image {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: brightness(1.2); /* Slight brightness adjustment for visibility on dark background, not color change */
}

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

.page-lottery__step-item p {
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__step-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__step-button:hover {
  background-color: #e6c200;
}

.page-lottery__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__strategy-list li {
  background: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery__strategy-list li h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-lottery__strategy-list li p {
  color: #f0f0f0;
  line-height: 1.7;
}

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

.page-lottery__feature-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-lottery__feature-image {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slight brightness adjustment for visibility on dark background, not color change */
}

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

.page-lottery__feature-item p {
  color: #f0f0f0;
  line-height: 1.7;
}

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

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

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

.page-lottery__faq-question:hover {
  background: #2a2a2a;
}

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

.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: 30px;
  height: 30px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for active state */
  color: var(--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 25px;
  opacity: 0;
  background-color: var(--card-bg);
  color: #f0f0f0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  margin: 0;
  line-height: 1.7;
}

.page-lottery__section--cta-bottom {
  padding: 80px 0;
  background: linear-gradient(135deg, #00004d 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  text-align: center;
  border-top: 2px solid var(--primary-color);
}

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

  .page-lottery__section-title {
    font-size: 2em;
  }

  .page-lottery__content-grid {
    flex-direction: column;
  }

  .page-lottery__image-wrapper {
    margin-top: 30px;
  }

  .page-lottery__cards-grid, .page-lottery__steps-grid, .page-lottery__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 80px !important; /* Adjust for fixed header on mobile */
    font-size: 15px;
  }

  .page-lottery__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-lottery__hero-section {
    padding: 60px 0 40px;
  }

  .page-lottery__main-title {
    font-size: 2em;
  }

  .page-lottery__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-lottery__text-block, .page-lottery__image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-lottery__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 8px;
  }

  .page-lottery__cards-grid, .page-lottery__steps-grid, .page-lottery__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-lottery__card-image {
    height: 180px;
  }

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

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

  .page-lottery__faq-question h3 {
    font-size: 1em;
  }

  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

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

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

  .page-lottery__strategy-list li {
    padding: 20px;
  }

  .page-lottery__strategy-list li h3 {
    font-size: 1.2em;
  }

  .page-lottery__step-icon {
    width: 80px;
    height: 80px;
  }

  .page-lottery__feature-image {
    max-width: 120px;
  }

  .page-lottery__section--cta-bottom {
    padding: 60px 0;
  }

  .page-lottery__text-block .page-lottery__read-more-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 1.8em;
  }

  .page-lottery__section-title {
    font-size: 1.6em;
  }

  .page-lottery__cta-buttons {
    gap: 10px;
  }

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