/* style/lottery.css */

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

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

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

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

.page-lottery__dark-section {
  background-color: var(--page-lottery-card-bg);
}

.page-lottery__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--page-lottery-gold);
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-lottery__text-secondary {
  color: var(--page-lottery-text-secondary);
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top padding for fixed header, this is for visual spacing */
  overflow: hidden;
}

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

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-lottery__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--page-lottery-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.page-lottery__description {
  font-size: 1.2em;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-lottery__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-lottery__cta-buttons--center {
  margin-top: 40px;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-lottery__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-lottery__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 30px;
  margin-top: 15px;
}

/* Game Types Grid */
.page-lottery__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__card {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
}

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

.page-lottery__card-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-lottery-gold);
  margin-bottom: 15px;
  text-align: center;
}

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

/* How to Play Steps */
.page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__step-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__step-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-lottery-gold);
  margin-bottom: 10px;
}

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

/* Benefits Grid */
.page-lottery__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__benefit-card {
  background-color: var(--page-lottery-background);
  border: 1px solid var(--page-lottery-divider);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__benefit-icon {
  width: 250px; /* Min size 200px */
  height: auto;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__benefit-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-lottery-gold);
  margin-bottom: 10px;
}

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

/* Strategies List */
.page-lottery__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-lottery__strategy-item {
  background-color: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__strategy-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-lottery-gold);
  margin-bottom: 10px;
}

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

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-lottery-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-lottery__faq-item[open] .page-lottery__faq-question {
  background-color: var(--page-lottery-deep-green);
  border-bottom: 1px solid var(--page-lottery-border);
  border-radius: 8px 8px 0 0;
}

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

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

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

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

/* Conclusion Section */
.page-lottery__conclusion .page-lottery__section-title {
  color: var(--page-lottery-gold);
}

/* Global Image/Video/Button Responsiveness */
.page-lottery img,
.page-lottery video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery__section,
.page-lottery__card,
.page-lottery__container,
.page-lottery__video-section,
.page-lottery__video-container,
.page-lottery__video-wrapper,
.page-lottery__cta-buttons,
.page-lottery__button-group,
.page-lottery__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-lottery__section-title {
    font-size: 2em;
  }

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

  .page-lottery__description {
    font-size: 1em;
  }

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-lottery__grid-3-col,
  .page-lottery__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-lottery__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-lottery__card,
  .page-lottery__benefit-card,
  .page-lottery__step-item,
  .page-lottery__strategy-item,
  .page-lottery__faq-item {
    padding: 20px;
  }

  .page-lottery__card-title {
    font-size: 1.5em;
  }

  .page-lottery__benefit-title {
    font-size: 1.3em;
  }

  .page-lottery__step-title,
  .page-lottery__strategy-title {
    font-size: 1.2em;
  }

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

  /* Force responsive images and videos */
  .page-lottery img,
  .page-lottery video,
  .page-lottery__hero-image,
  .page-lottery__card-image,
  .page-lottery__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive containers */
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper,
  .page-lottery__cta-buttons,
  .page-lottery__button-group,
  .page-lottery__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-lottery__hero-section,
  .page-lottery__section {
    padding-left: 0;
    padding-right: 0;
  }

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