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

.page-lottery {
  background-color: var(--page-lottery-background);
  color: var(--page-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;
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles padding-top for header */
  background-color: var(--page-lottery-deep-green);
  overflow: hidden;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
}

.page-lottery__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but text is below image */
  position: relative;
  z-index: 1;
  background-color: rgba(8, 22, 15, 0.85); /* Semi-transparent background for text */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-lottery-border);
}

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

.page-lottery__hero-description {
  font-size: 1.15rem;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__cta-button {
  display: inline-block;
  background: var(--page-lottery-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-lottery__cta-button--center {
  margin: 40px auto 0 auto;
  display: table;
}

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

.page-lottery__section-title--dark-text {
  color: var(--page-lottery-deep-green);
  text-shadow: none;
}

.page-lottery__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--page-lottery-gold);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.page-lottery__subsection-title--dark-text {
  color: var(--page-lottery-deep-green);
}

.page-lottery__text-block {
  font-size: 1rem;
  color: var(--page-lottery-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__text-block--dark-text {
  color: var(--page-lottery-deep-green);
}

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

.page-lottery__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid var(--page-lottery-border);
}

.page-lottery__introduction-section,
.page-lottery__how-to-play-section,
.page-lottery__promotions-section,
.page-lottery__faq-section {
  padding: 60px 0;
  background-color: var(--page-lottery-background);
}

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

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

.page-lottery__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-lottery__feature-list .page-lottery__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--page-lottery-text-secondary);
  font-size: 1.05rem;
}

.page-lottery__feature-list .page-lottery__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--page-lottery-glow);
  font-size: 1.2rem;
  line-height: 1;
}

.page-lottery__feature-list--dark-text .page-lottery__list-item {
  color: var(--page-lottery-deep-green);
}

.page-lottery__game-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-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--page-lottery-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__card-title {
  font-size: 1.4rem;
  color: var(--page-lottery-gold);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-lottery__card-description {
  font-size: 0.95rem;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-lottery__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--page-lottery-primary-color);
  border: 2px solid var(--page-lottery-primary-color);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

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

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

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

.page-lottery__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--page-lottery-button-gradient);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-lottery__step-title {
  font-size: 1.3rem;
  color: var(--page-lottery-gold);
  margin-bottom: 15px;
}

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

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

.page-lottery__advantage-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-lottery__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__advantage-title {
  font-size: 1.4rem;
  color: var(--page-lottery-deep-green);
  margin-bottom: 15px;
}

.page-lottery__advantage-title--dark-text {
  color: var(--page-lottery-deep-green);
}

.page-lottery__advantage-description {
  font-size: 0.95rem;
  color: #555555;
}

.page-lottery__advantage-description--dark-text {
  color: var(--page-lottery-deep-green);
}

.page-lottery__promotions-section {
  background-color: var(--page-lottery-deep-green);
}

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

.page-lottery__promo-card {
  background-color: var(--page-lottery-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-lottery-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__promo-title {
  font-size: 1.4rem;
  color: var(--page-lottery-gold);
  margin-bottom: 15px;
}

.page-lottery__promo-description {
  font-size: 0.95rem;
  color: var(--page-lottery-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__btn-primary {
  display: inline-block;
  background: var(--page-lottery-button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

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

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

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

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--page-lottery-glow);
  margin-left: 15px;
}

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

.page-lottery__faq-item[open] .page-lottery__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  content: '−';
}

.page-lottery a {
  color: var(--page-lottery-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery a:hover {
  color: var(--page-lottery-gold);
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-lottery__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__hero-content {
    padding: 30px 15px;
    margin-top: -30px;
  }

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

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

  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-lottery__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-lottery__subsection-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    margin-top: 30px;
    margin-bottom: 20px;
  }

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

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

  .page-lottery__card-title,
  .page-lottery__step-title,
  .page-lottery__advantage-title,
  .page-lottery__promo-title {
    font-size: 1.2rem;
  }

  .page-lottery__card-description,
  .page-lottery__step-description,
  .page-lottery__advantage-description,
  .page-lottery__promo-description {
    font-size: 0.9rem;
  }

  .page-lottery__btn-secondary,
  .page-lottery__btn-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

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

  .page-lottery__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px 15px;
  }

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

  /* Mobile responsive for buttons */
  .page-lottery__cta-button,
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-lottery__cta-button--center {
    width: auto !important; /* Allow auto width for center alignment on mobile */
    max-width: calc(100% - 30px) !important; /* Adjust for padding */
    margin-left: 15px;
    margin-right: 15px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-lottery__hero-content {
    max-width: calc(100% - 30px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-lottery__game-cards,
  .page-lottery__steps-grid,
  .page-lottery__advantage-grid,
  .page-lottery__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-lottery__card,
  .page-lottery__step-item,
  .page-lottery__advantage-item,
  .page-lottery__promo-card {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-section {
    padding-bottom: 30px;
  }

  .page-lottery__introduction-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__advantages-section,
  .page-lottery__responsible-gambling-section {
    padding: 30px 0;
  }

  .page-lottery__hero-content .page-lottery__cta-button {
    width: auto !important;
    max-width: 100% !important;
  }

  .page-lottery__hero-content .page-lottery__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

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

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .page-lottery__hero-description {
    font-size: 0.9rem;
  }

  .page-lottery__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .page-lottery__faq-question {
    font-size: 0.95rem;
  }

  .page-lottery__faq-answer {
    font-size: 0.9rem;
  }
}