/* style/lottery.css */

:root {
  --page-lottery-primary-color: #11A84E;
  --page-lottery-secondary-color: #22C768;
  --page-lottery-background-dark: #08160F;
  --page-lottery-card-background: #11271B;
  --page-lottery-text-main: #F2FFF6;
  --page-lottery-text-secondary: #A7D9B8;
  --page-lottery-border-color: #2E7A4E;
  --page-lottery-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-lottery-button-text-color: #ffffff;
  --page-lottery-light-background: #ffffff; /* Default for light sections */
  --page-lottery-light-text-color: #333333; /* Default for light sections */
}

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

.page-lottery__dark-bg {
  background-color: var(--page-lottery-background-dark);
  color: var(--page-lottery-text-main);
}

.page-lottery__light-bg {
  background-color: var(--page-lottery-light-background);
  color: var(--page-lottery-light-text-color);
}

.page-lottery__light-text-color {
  color: var(--page-lottery-light-text-color);
}

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

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-lottery__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-lottery__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--page-lottery-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__description {
  font-size: 1.1rem;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 30px;
}

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

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

.page-lottery__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--page-lottery-primary-color);
  margin-bottom: 40px;
}

.page-lottery__text-block {
  font-size: 1rem;
  color: var(--page-lottery-text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__grid-container,
.page-lottery__steps-grid,
.page-lottery__games-grid,
.page-lottery__strategy-grid,
.page-lottery__promo-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 40px;
}

.page-lottery__card,
.page-lottery__step-card,
.page-lottery__game-card,
.page-lottery__strategy-item,
.page-lottery__promo-card {
  background-color: var(--page-lottery-card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-lottery-border-color);
}

.page-lottery__card-bg {
  background-color: var(--page-lottery-card-background);
  color: var(--page-lottery-text-main);
}

.page-lottery__card-bg-light {
  background-color: var(--page-lottery-light-background);
  color: var(--page-lottery-light-text-color);
  border: 1px solid #e0e0e0;
}

.page-lottery__card-title,
.page-lottery__step-title,
.page-lottery__game-title,
.page-lottery__strategy-title,
.page-lottery__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-lottery-primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-lottery__card-text,
.page-lottery__step-text,
.page-lottery__game-description,
.page-lottery__strategy-text,
.page-lottery__promo-text {
  font-size: 0.95rem;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__card-bg-light .page-lottery__card-text,
.page-lottery__card-bg-light .page-lottery__step-text,
.page-lottery__card-bg-light .page-lottery__game-description,
.page-lottery__card-bg-light .page-lottery__strategy-text,
.page-lottery__card-bg-light .page-lottery__promo-text {
  color: var(--page-lottery-light-text-color);
}

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

.page-lottery__cta-button,
.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__faq-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: var(--page-lottery-button-gradient);
  color: var(--page-lottery-button-text-color);
  border: none;
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background: var(--page-lottery-light-background);
  color: var(--page-lottery-primary-color);
  border: 2px solid var(--page-lottery-primary-color);
}

.page-lottery__btn-secondary:hover {
  background: var(--page-lottery-primary-color);
  color: var(--page-lottery-light-background);
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-lottery-primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-question::marker {
  display: none;
}

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  color: var(--page-lottery-light-text-color);
  line-height: 1.6;
}

.page-lottery__faq-answer p {
  margin-bottom: 10px;
}

.page-lottery__final-cta {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-lottery__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-lottery__main-title {
    font-size: 2.2rem;
  }
  .page-lottery__description {
    font-size: 1rem;
  }
  .page-lottery__section {
    padding: 40px 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__grid-container,
  .page-lottery__steps-grid,
  .page-lottery__games-grid,
  .page-lottery__strategy-grid,
  .page-lottery__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__card,
  .page-lottery__step-card,
  .page-lottery__game-card,
  .page-lottery__strategy-item,
  .page-lottery__promo-card {
    padding: 25px;
  }
  .page-lottery__card-image,
  .page-lottery__game-image,
  .page-lottery__promo-image {
    height: 180px;
    min-height: 180px;
  }
  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__faq-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 10px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-lottery__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95rem;
  }
  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__hero-image-wrapper,
  .page-lottery__card,
  .page-lottery__section,
  .page-lottery__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 1.8rem;
  }
  .page-lottery__section-title {
    font-size: 1.5rem;
  }
  .page-lottery__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-lottery__container {
    padding: 0 10px !important;
  }
  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__faq-button {
    padding: 10px 15px;
  }
}