/* style/lottery.css */
.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF);
}

.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  overflow: hidden;
  min-height: 600px;
}

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

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-lottery__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-lottery__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-lottery__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-lottery__dark-bg .page-lottery__section-title,
.page-lottery__dark-bg .page-lottery__section-subtitle {
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-lottery__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-lottery__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-lottery__hero-section .page-lottery__btn-secondary {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-lottery__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-lottery__light-bg .page-lottery__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-lottery__light-bg .page-lottery__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-lottery__mt-40 {
  margin-top: 40px;
}

/* Game Types Section */
.page-lottery__game-types-section {
  padding: 80px 0;
}

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

.page-lottery__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-lottery__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-lottery__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-lottery__card-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-lottery__card-button:hover {
  background-color: #1a7bbd;
}

/* How To Play Section */
.page-lottery__how-to-play-section {
  padding: 80px 0;
}

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

.page-lottery__step-item {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #26A9E0;
  border-radius: 50%;
}

.page-lottery__step-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.page-lottery__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
}

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

.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-lottery__promo-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-lottery__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__promo-button {
  display: inline-block;
  background-color: #EA7C07;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-lottery__promo-button:hover {
  background-color: #d16b00;
}

/* Security Section */
.page-lottery__security-section {
  padding: 80px 0;
}

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

.page-lottery__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-lottery__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__feature-description {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
}

.page-lottery__faq-list {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  color: #333333;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

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

/* CTA Banner */
.page-lottery__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #26A9E0, #1a7bbd);
  color: #ffffff;
}

.page-lottery__cta-content {
  max-width: 900px;
}

.page-lottery__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-lottery__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-lottery__large-btn {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__hero-buttons {
    flex-direction: column;
    gap: 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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-buttons, .page-lottery__cta-buttons, .page-lottery__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__section-subtitle {
    font-size: 1em;
  }
  .page-lottery__container {
    padding: 30px 15px;
  }

  .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-section,
  .page-lottery__game-types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__security-section,
  .page-lottery__faq-section,
  .page-lottery__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__card-image {
    height: 200px;
  }
  .page-lottery__cta-title {
    font-size: 2em;
  }
  .page-lottery__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__btn-primary, .page-lottery__btn-secondary {
    padding: 12px 20px;
  }
  .page-lottery__section-title {
    font-size: 1.6em;
  }
  .page-lottery__faq-question {
    font-size: 1em;
  }
  .page-lottery__cta-title {
    font-size: 1.8em;
  }
}