/* style/lottery.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #E0B973;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --background-light: #f8f9fa;
  --background-dark: var(--primary-color);
}

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

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

.page-lottery__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-on-dark);
}

.page-lottery__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-dark);
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

.page-lottery__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-lottery__dark-bg .page-lottery__section-title {
  color: var(--secondary-color);
}

.page-lottery__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-on-light);
}

.page-lottery__dark-bg .page-lottery__section-description {
  color: var(--text-on-dark);
}

.page-lottery__about-section,
.page-lottery__game-types-section,
.page-lottery__features-section,
.page-lottery__guide-section,
.page-lottery__promotions-section,
.page-lottery__faq-section,
.page-lottery__contact-cta {
  padding: 80px 0;
}

.page-lottery__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-lottery__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-lottery__image-wrapper {
  text-align: center;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

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

.page-lottery__card {
  background-color: #ffffff;
  color: var(--text-on-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__dark-bg .page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__dark-bg .page-lottery__card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-lottery__dark-bg .page-lottery__card-title {
  color: var(--secondary-color);
}

.page-lottery__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__card-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: auto;
}

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

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

.page-lottery__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-lottery__feature-icon {
  font-size: 3em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__feature-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-lottery__feature-text {
  font-size: 1em;
  color: var(--text-on-light);
}

.page-lottery__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-lottery__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-on-dark);
}

.page-lottery__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-lottery__step-text {
  font-size: 1em;
}

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

.page-lottery__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-lottery__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-lottery__promo-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-lottery__promo-card p {
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery__promo-card .page-lottery__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

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

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  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;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-on-dark);
}

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

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

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-dark);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

.page-lottery__faq-answer p {
  margin: 0 0 10px 0;
  font-size: 1em;
}

.page-lottery__contact-cta {
  text-align: center;
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-lottery__contact-cta .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__contact-cta .page-lottery__section-description {
  color: var(--primary-color);
  margin-bottom: 40px;
}

.page-lottery__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 3em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__content-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-lottery__card-grid,
  .page-lottery__features-list,
  .page-lottery__guide-steps,
  .page-lottery__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 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-section,
  .page-lottery__promo-card,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-lottery__about-section,
  .page-lottery__game-types-section,
  .page-lottery__features-section,
  .page-lottery__guide-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__contact-cta {
    padding: 40px 0;
  }
  .page-lottery__image,
  .page-lottery__card-image,
  .page-lottery__promo-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__card,
  .page-lottery__feature-item,
  .page-lottery__step-item,
  .page-lottery__promo-card {
    padding: 20px;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__faq-title {
    font-size: 1.1em;
  }
}

/* Ensure no image filters are used */
.page-lottery img {
  filter: none !important;
}