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

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--page-lottery-text-main); /* Default text color for dark background */
  background-color: var(--page-lottery-background-color); /* Main background color */
}

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

.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--page-lottery-deep-green);
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-lottery__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 20px;
}

.page-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--page-lottery-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: var(--page-lottery-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-lottery__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

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

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

.page-lottery__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-lottery-gold-color);
  line-height: 1.3;
}

.page-lottery__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-lottery-text-main);
}

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

.page-lottery__link {
  color: var(--page-lottery-primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

/* Introduction Section */
.page-lottery__introduction-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-lottery__introduction-section .page-lottery__section-title {
  color: var(--page-lottery-deep-green);
}

.page-lottery__introduction-section .page-lottery__text-block,
.page-lottery__introduction-section .page-lottery__link {
  color: #333333;
}

.page-lottery__image-text-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-lottery__image-inline {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

/* Game Types Section */
.page-lottery__game-types-section {
  padding: 80px 0;
  background-color: var(--page-lottery-background-color);
  color: var(--page-lottery-text-main);
}

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

.page-lottery__card {
  background-color: var(--page-lottery-card-background);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-lottery-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-lottery-text-main);
}

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

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

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

.page-lottery__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 25px;
}

/* Guide Section */
.page-lottery__guide-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-lottery__guide-section .page-lottery__section-title {
  color: var(--page-lottery-deep-green);
}

.page-lottery__guide-section .page-lottery__text-block,
.page-lottery__guide-section .page-lottery__link {
  color: #333333;
}

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

.page-lottery__step-item {
  text-align: center;
}

.page-lottery__step-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background-color: var(--page-lottery-primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

.page-lottery__step-icon img {
  
  
  object-fit: contain;
  filter: brightness(0) invert(1); /* Ensure icon is white on green background */
  min- /* Ensure min size for icons as per general rule */
  min-
   /* Ensure max size for icons */
  
}

.page-lottery__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-lottery-deep-green);
}

.page-lottery__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
  background-color: var(--page-lottery-deep-green);
  color: var(--page-lottery-text-main);
}

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

.page-lottery__promo-card {
  background-color: var(--page-lottery-card-background);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-lottery-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-lottery-text-main);
}

.page-lottery__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-lottery__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 25px;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-lottery__faq-section .page-lottery__section-title {
  color: var(--page-lottery-deep-green);
}

.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  color: var(--page-lottery-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-lottery__faq-question:hover {
  background-color: #e5e5e5;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: 500;
  color: var(--page-lottery-primary-color);
}

.page-lottery__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* CTA Section */
.page-lottery__cta-section {
  padding: 80px 0;
  background-color: var(--page-lottery-background-color);
  color: var(--page-lottery-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-image-wrapper {
    max-height: 500px;
  }
  .page-lottery__grid-cards,
  .page-lottery__guide-steps,
  .page-lottery__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-lottery__text-block {
    font-size: 0.95em;
  }

  .page-lottery__image-text-block {
    flex-direction: column;
  }

  /* Image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__card-image,
  .page-lottery__promo-image,
  .page-lottery__image-inline {
    height: auto; /* Allow height to adjust naturally */
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-lottery__step-icon img {
    min-
    min-
  }

  .page-lottery__introduction-section,
  .page-lottery__game-types-section,
  .page-lottery__guide-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    padding: 40px 0;
  }

  .page-lottery__card,
  .page-lottery__promo-card,
  .page-lottery__faq-item {
    padding: 20px;
  }

  .page-lottery__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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