/* style/lottery.css */
:root {
  --lottery-bg-color: #08160F;
  --lottery-card-bg: #11271B;
  --lottery-text-main: #F2FFF6;
  --lottery-text-secondary: #A7D9B8;
  --lottery-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --lottery-border-color: #2E7A4E;
  --lottery-glow-color: #57E38D;
  --lottery-gold-color: #F2C14E;
  --lottery-divider-color: #1E3A2A;
  --lottery-deep-green: #0A4B2C;
}

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

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

/* Sections */
.page-lottery__hero-section,
.page-lottery__about-section,
.page-lottery__games-section,
.page-lottery__how-to-play-section,
.page-lottery__promotions-section,
.page-lottery__faq-section,
.page-lottery__cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-lottery__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  box-sizing: border-box;
  order: 1; /* Image appears first */
}

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

.page-lottery__hero-content {
  order: 2; /* Content appears after image */
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--lottery-text-main);
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--lottery-text-main);
  margin-bottom: 20px;
}

.page-lottery__text-block {
  font-size: 1.1em;
  color: var(--lottery-text-secondary);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Background colors */
.page-lottery__dark-bg {
  background-color: var(--lottery-bg-color);
  color: var(--lottery-text-main);
}

.page-lottery__light-bg {
  background-color: #F2FFF6; /* Light background for contrast */
  color: #333333;
}

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__feature-title,
.page-lottery__light-bg .page-lottery__step-title,
.page-lottery__light-bg .page-lottery__faq-qtext {
  color: #000000;
}

.page-lottery__light-bg .page-lottery__text-block,
.page-lottery__light-bg .page-lottery__feature-text,
.page-lottery__light-bg .page-lottery__step-text,
.page-lottery__light-bg .page-lottery__faq-answer p {
  color: #333333;
}

.page-lottery__light-bg .page-lottery__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.page-lottery__light-bg .page-lottery__card-title {
  color: #000000;
}

.page-lottery__light-bg .page-lottery__card-text {
  color: #555555;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-lottery__btn-primary {
  background: var(--lottery-btn-gradient);
  color: #ffffff;
  border: none;
}

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

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

.page-lottery__btn-secondary:hover {
  background: var(--lottery-glow-color);
  color: var(--lottery-bg-color);
  transform: translateY(-2px);
}

.page-lottery__inline-link {
  color: var(--lottery-glow-color);
  text-decoration: underline;
}

.page-lottery__inline-link:hover {
  color: var(--lottery-gold-color);
}

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

.page-lottery__feature-item {
  background-color: var(--lottery-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__light-bg .page-lottery__feature-item {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--lottery-text-main);
  margin-bottom: 15px;
}

.page-lottery__light-bg .page-lottery__feature-title {
  color: #000000;
}

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

.page-lottery__light-bg .page-lottery__feature-text {
  color: #333333;
}

/* Games Grid & Promotions Grid */
.page-lottery__games-grid,
.page-lottery__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__game-card,
.page-lottery__promo-card {
  background-color: var(--lottery-card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-lottery__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--lottery-text-main);
  margin-bottom: 10px;
}

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

.page-lottery__game-card .page-lottery__btn-primary,
.page-lottery__promo-card .page-lottery__btn-primary {
  width: auto;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-lottery__step-item {
  background-color: #ffffff; /* Light background for steps */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-lottery__step-number {
  font-size: 2em;
  font-weight: bold;
  color: var(--lottery-glow-color);
  margin-bottom: 15px;
  background-color: var(--lottery-deep-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lottery-text-main);
}

.page-lottery__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

.page-lottery__step-text {
  color: #333333;
  font-size: 1em;
}

.page-lottery__image-centered {
  margin-top: 50px;
  text-align: center;
}

.page-lottery__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-lottery__cta-center {
  margin-top: 50px;
  text-align: center;
}

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

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

.page-lottery__light-bg .page-lottery__faq-item {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--lottery-text-main);
  border-bottom: 1px solid var(--lottery-divider-color);
}

.page-lottery__light-bg .page-lottery__faq-question {
  color: #000000;
  border-bottom: 1px solid #e0e0e0;
}

.page-lottery__faq-item[open] > .page-lottery__faq-question {
  border-bottom: 1px solid var(--lottery-glow-color);
}

.page-lottery__light-bg .page-lottery__faq-item[open] > .page-lottery__faq-question {
  border-bottom: 1px solid #2AD16F;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--lottery-glow-color);
}

.page-lottery__light-bg .page-lottery__faq-toggle {
  color: #2AD16F;
}

.page-lottery__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--lottery-text-secondary);
}

.page-lottery__light-bg .page-lottery__faq-answer {
  color: #333333;
}

/* Remove default details marker */
.page-lottery__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-item summary {
  list-style: none;
}

/* Footer Placeholder Styling (for visual separation) */
.page-lottery__footer-placeholder {
  height: 100px; /* Adjust as needed */
  background-color: var(--lottery-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lottery-text-main);
  font-size: 0.9em;
  text-align: center;
  padding: 20px;
}

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

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery__hero-section,
  .page-lottery__about-section,
  .page-lottery__games-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    padding: 40px 0;
  }

  .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-content {
    padding: 0 15px;
  }

  .page-lottery__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Image responsive adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-image-wrapper,
  .page-lottery__image-centered,
  .page-lottery__games-grid,
  .page-lottery__promotions-grid,
  .page-lottery__features-grid,
  .page-lottery__steps-grid,
  .page-lottery__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-lottery__hero-section {
    padding-top: 10px !important;
  }

  .page-lottery__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-lottery__video,
  .page-lottery video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}