/* style/lottery.css */

:root {
  --page-lottery-primary-color: #0A192F;
  --page-lottery-secondary-color: #FFD700;
  --page-lottery-text-light: #ffffff;
  --page-lottery-text-dark: #333333;
  --page-lottery-bg-dark: #0A192F;
  --page-lottery-bg-light: #f8f9fa;
  --page-lottery-card-bg-dark: rgba(255, 255, 255, 0.08);
  --page-lottery-card-bg-light: #ffffff;
  --page-lottery-border-color: #3a475e;
}

.page-lottery {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-lottery-text-light); /* Default to light text for dark body */
  background-color: var(--page-lottery-bg-dark);
}

/* Fixed header spacing for the first content section */
.page-lottery__intro-section {
  padding-top: 10px; /* Ensures content is not hidden by fixed header */
}

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

.page-lottery__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--page-lottery-secondary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__section-subtitle {
  font-size: 20px;
  color: var(--page-lottery-text-light);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-lottery__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-lottery-text-light);
  opacity: 0.85;
}

.page-lottery__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

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

.page-lottery__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.page-lottery__btn--secondary:hover {
  background-color: var(--page-lottery-secondary-color);
  color: var(--page-lottery-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* Sections */
.page-lottery__dark-section {
  background-color: var(--page-lottery-bg-dark);
  color: var(--page-lottery-text-light);
  padding: 80px 0;
}

.page-lottery__light-section {
  background-color: var(--page-lottery-bg-light);
  color: var(--page-lottery-text-dark);
  padding: 80px 0;
}

.page-lottery__light-section .page-lottery__section-title {
  color: var(--page-lottery-primary-color);
}

.page-lottery__light-section .page-lottery__section-subtitle,
.page-lottery__light-section .page-lottery__text-block {
  color: var(--page-lottery-text-dark);
}

.page-lottery__light-section a {
  color: var(--page-lottery-primary-color);
}

.page-lottery__light-section a:hover {
  color: var(--page-lottery-secondary-color);
}

/* Hero Banner */
.page-lottery__hero-banner {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Fixed header spacing */
  margin-top: 0;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--page-lottery-text-light);
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-lottery__hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--page-lottery-secondary-color);
  line-height: 1.1;
}

.page-lottery__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  line-height: 1.5;
  opacity: 0.95;
}

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

.page-lottery__game-card {
  background-color: var(--page-lottery-card-bg-light);
  color: var(--page-lottery-text-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-lottery__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-lottery__game-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-lottery-primary-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-lottery__game-description {
  font-size: 16px;
  color: var(--page-lottery-text-dark);
  margin-bottom: 20px;
  padding: 0 20px;
  opacity: 0.85;
}

/* How To Play Steps */
.page-lottery__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

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

.page-lottery__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--page-lottery-secondary-color);
  color: var(--page-lottery-primary-color);
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-lottery__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-lottery-secondary-color);
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 16px;
  color: var(--page-lottery-text-light);
  opacity: 0.85;
}

.page-lottery__cta-block {
  text-align: center;
  margin-top: 40px;
  font-size: 22px;
  color: var(--page-lottery-text-light);
}

.page-lottery__cta-block .page-lottery__btn {
  margin-top: 20px;
}

/* Benefits Section */
.page-lottery__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery__benefit-card {
  background-color: var(--page-lottery-card-bg-light);
  color: var(--page-lottery-text-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-lottery__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-lottery__benefit-description {
  font-size: 16px;
  color: var(--page-lottery-text-dark);
  opacity: 0.85;
}

/* Tips Section */
.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-lottery__tip-item {
  background-color: var(--page-lottery-card-bg-dark);
  border-left: 5px solid var(--page-lottery-secondary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__tip-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-lottery-secondary-color);
  margin-bottom: 10px;
}

.page-lottery__tip-item p {
  font-size: 16px;
  color: var(--page-lottery-text-light);
  opacity: 0.85;
}

/* Promo Section */
.page-lottery__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery__promo-card {
  background-color: var(--page-lottery-card-bg-light);
  color: var(--page-lottery-text-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-lottery-primary-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-lottery__promo-description {
  font-size: 16px;
  color: var(--page-lottery-text-dark);
  margin-bottom: 20px;
  padding: 0 20px;
  opacity: 0.85;
}

/* FAQ Section */
.page-lottery__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--page-lottery-text-dark);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--page-lottery-card-bg-light);
  border-radius: 0 0 5px 5px;
  color: var(--page-lottery-text-dark);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--page-lottery-card-bg-dark);
  border: 1px solid var(--page-lottery-border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--page-lottery-secondary-color);
}

.page-lottery__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--page-lottery-text-light);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-lottery-secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--page-lottery-secondary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Final CTA */
.page-lottery__cta-final {
  text-align: center;
  padding: 60px 20px;
}

.page-lottery__cta-final .page-lottery__section-title {
  margin-bottom: 30px;
}

.page-lottery__cta-final .page-lottery__text-block {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-lottery__cta-final .page-lottery__btn {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 44px;
  }
  .page-lottery__hero-description {
    font-size: 20px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__section-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-lottery__container {
    padding: 30px 15px;
  }
  .page-lottery__hero-container {
    min-height: 400px;
  }
  .page-lottery__hero-content {
    padding: 15px;
  }
  .page-lottery__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-lottery__btn {
    padding: 10px 20px;
    font-size: 16px;
  }
  .page-lottery__dark-section, .page-lottery__light-section {
    padding: 60px 0;
  }
  .page-lottery__section-title {
    font-size: 28px;
  }
  .page-lottery__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-lottery__text-block {
    font-size: 15px;
  }
  .page-lottery__game-card, .page-lottery__step-item, .page-lottery__benefit-card, .page-lottery__promo-card {
    padding: 20px;
  }
  .page-lottery__game-image {
    height: 180px;
  }
  .page-lottery__game-title, .page-lottery__step-title, .page-lottery__benefit-title, .page-lottery__promo-title, .page-lottery__tip-heading {
    font-size: 20px;
  }
  .page-lottery__game-description, .page-lottery__step-description, .page-lottery__benefit-description, .page-lottery__promo-description, .page-lottery__tip-item p {
    font-size: 14px;
  }
  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image specific styles */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__hero-banner,
  .page-lottery__intro-section,
  .page-lottery__games-section,
  .page-lottery__how-to-play,
  .page-lottery__benefits-section,
  .page-lottery__tips-section,
  .page-lottery__promo-section,
  .page-lottery__faq-section,
  .page-lottery__cta-final,
  .page-lottery__container,
  .page-lottery__game-card,
  .page-lottery__step-item,
  .page-lottery__benefit-card,
  .page-lottery__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}