/* style/lottery.css */
.page-lottery {
  background-color: var(--background-color, #0D0E12);
  color: var(--text-main-color, #FFF3E6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color, #0D0E12);
  color: var(--text-main-color, #FFF3E6);
  text-align: center;
}

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

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-lottery__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF3E6);
  /* No fixed font-size, rely on responsive clamps or relative units if needed */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-lottery__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-main-color, #FFF3E6);
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-small {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-lottery__btn-secondary:hover {
  background: #f0f0f0;
  color: #D96800;
}

.page-lottery__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-lottery__btn-small:hover {
  opacity: 0.9;
}

.page-lottery__intro-section,
.page-lottery__why-choose-us,
.page-lottery__faq-section {
  padding: 80px 20px;
}

.page-lottery__games-section,
.page-lottery__guide-section,
.page-lottery__cta-section {
  padding: 80px 20px;
}

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

.page-lottery__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-main-color, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__description,
.page-lottery__light-bg .page-lottery__text-block,
.page-lottery__light-bg .page-lottery__card-title,
.page-lottery__light-bg .page-lottery__card-description,
.page-lottery__light-bg .page-lottery__feature-title,
.page-lottery__light-bg .page-lottery__feature-description,
.page-lottery__light-bg .page-lottery__faq-qtext,
.page-lottery__light-bg .page-lottery__faq-answer p {
  color: #333333;
}

.page-lottery__light-bg .page-lottery__highlight {
  color: #D96800;
}

.page-lottery__light-bg .page-lottery__card {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.page-lottery__dark-section {
  background-color: var(--background-color, #0D0E12);
  color: var(--text-main-color, #FFF3E6);
}

.page-lottery__dark-section .page-lottery__section-title,
.page-lottery__dark-section .page-lottery__description,
.page-lottery__dark-section .page-lottery__text-block,
.page-lottery__dark-section .page-lottery__card-title,
.page-lottery__dark-section .page-lottery__card-description,
.page-lottery__dark-section .page-lottery__feature-title,
.page-lottery__dark-section .page-lottery__feature-description,
.page-lottery__dark-section .page-lottery__faq-qtext,
.page-lottery__dark-section .page-lottery__faq-answer p {
  color: var(--text-main-color, #FFF3E6);
}

.page-lottery__dark-section .page-lottery__highlight {
  color: #FFA53A;
}

.page-lottery__dark-section .page-lottery__card {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
}

.page-lottery__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
}

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

.page-lottery__game-card,
.page-lottery__guide-card,
.page-lottery__card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-lottery__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-lottery__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-lottery__card-title a:hover {
  color: #FFA53A;
}

.page-lottery__card-description {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-lottery__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--card-bg-color, #17191F);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__light-bg .page-lottery__feature-item {
  background-color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: inherit;
}

.page-lottery__feature-description {
  font-size: 0.95rem;
  color: inherit;
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-lottery__faq-item {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #FFF3E6);
}

.page-lottery__light-bg .page-lottery__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

.page-lottery__light-bg .page-lottery__faq-question:hover {
  background-color: #f0f0f0;
}

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFA53A;
}

.page-lottery__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Details tag specific styles for native toggle */
.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  content: "−";
}

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

.page-lottery__faq-item summary {
  list-style: none;
}

.page-lottery__cta-container {
  text-align: center;
  padding: 60px 40px;
  border-radius: 15px;
  background: linear-gradient(90deg, #FF8C1A 0%, #D96800 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-lottery__cta-container .page-lottery__section-title,
.page-lottery__cta-container .page-lottery__text-block {
  color: #ffffff;
}

.page-lottery__cta-container .page-lottery__btn-primary {
  background: #ffffff;
  color: #FF8C1A;
  border: 2px solid #ffffff;
}

.page-lottery__cta-container .page-lottery__btn-primary:hover {
  background: #f0f0f0;
  color: #D96800;
}

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

.page-lottery__cta-container .page-lottery__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-lottery a {
  color: #FFA53A;
  text-decoration: underline;
}

.page-lottery a:hover {
  color: #D96800;
}

.page-lottery__highlight {
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-lottery__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-lottery__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-lottery__intro-section,
  .page-lottery__games-section,
  .page-lottery__why-choose-us,
  .page-lottery__guide-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-lottery__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

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

  .page-lottery__game-grid,
  .page-lottery__features-grid,
  .page-lottery__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-lottery__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-lottery__card-title {
    font-size: 1.2rem;
  }

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

  .page-lottery__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-lottery__feature-title {
    font-size: 1.1rem;
  }

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

  .page-lottery__faq-answer {
    padding: 0 20px 15px;
  }

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

  /* All containers with images/content must be responsive */
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__games-section,
  .page-lottery__why-choose-us,
  .page-lottery__guide-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section,
  .page-lottery__hero-content,
  .page-lottery__hero-image-wrapper,
  .page-lottery__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

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

  .page-lottery__cta-container {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-section {
    padding: 30px 10px;
    padding-top: 10px;
  }
  .page-lottery__intro-section,
  .page-lottery__games-section,
  .page-lottery__why-choose-us,
  .page-lottery__guide-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    padding: 40px 10px;
  }
  .page-lottery__main-title {
    font-size: 1.6rem;
  }
  .page-lottery__description {
    font-size: 0.9rem;
  }
  .page-lottery__section-title {
    font-size: 1.3rem;
  }
  .page-lottery__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px 12px;
  }
}