/* style/lottery.css */
:root {
  --primary-color: #0A2E50;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: #333;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body or set explicitly */
}

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

/* Top spacing for fixed header */
.page-lottery__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background-color: var(--primary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 0;
}

.page-lottery__hero-section .page-lottery__container {
  position: relative;
  z-index: 1;
}

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

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 2px solid transparent;
}

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

.page-lottery__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__btn-secondary:hover {
  background-color: #071f3a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery__intro-section,
.page-lottery__guide-section,
.page-lottery__tips-section,
.page-lottery__why-choose-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery__intro-section p,
.page-lottery__guide-section p,
.page-lottery__tips-section p,
.page-lottery__why-choose-section p {
  margin-bottom: 20px;
  font-size: 1.05em;
  text-align: justify;
}

.page-lottery__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-lottery__types-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-lottery__card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-lottery__card p {
  font-size: 1em;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__guide-list li {
  background-color: var(--card-bg-dark);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--secondary-color);
}

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

.page-lottery__guide-section .page-lottery__image-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-lottery__guide-cta {
  margin-top: 50px;
}

.page-lottery__promotions-section {
  padding: 80px 0;
}

.page-lottery__promotion-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__promotion-list li {
  background-color: var(--card-bg-dark);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-right: 5px solid var(--secondary-color);
}

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

.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__tips-list li {
  background-color: var(--card-bg-dark);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--secondary-color);
}

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

.page-lottery__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-lottery__final-cta {
  margin-top: 50px;
}

.page-lottery__advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__advantages-list li {
  background-color: var(--card-bg-dark);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-right: 5px solid var(--secondary-color);
  text-align: center;
}

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

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

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  border: 1px solid var(--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: #555;
}

.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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--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(--secondary-color);
  transform: rotate(45deg);
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #ccc;
  font-size: 0.95em;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 2.8em;
  }
  .page-lottery__section-title {
    font-size: 2.2em;
  }
  .page-lottery__card-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for smaller header */
    padding-bottom: 40px;
  }
  .page-lottery__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-lottery__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__promotions-section,
  .page-lottery__tips-section,
  .page-lottery__faq-section,
  .page-lottery__why-choose-section {
    padding: 50px 0;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__grid,
  .page-lottery__promotion-list,
  .page-lottery__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__card {
    padding: 20px;
  }
  .page-lottery__card-image {
    height: 180px;
  }
  .page-lottery__card-title {
    font-size: 1.3em;
  }
  .page-lottery__guide-list li,
  .page-lottery__promotion-list li,
  .page-lottery__tips-list li,
  .page-lottery__advantages-list li {
    padding: 20px;
  }
  .page-lottery__guide-step-title,
  .page-lottery__promotion-title,
  .page-lottery__tips-title,
  .page-lottery__advantage-title {
    font-size: 1.2em;
  }
  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-lottery__faq-question h3 {
    font-size: 1em;
    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;
  }
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    min-width: unset; /* Allow smaller images on mobile if needed, but still responsive */
    min-height: unset;
  }
  .page-lottery__image-wrapper,
  .page-lottery__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-lottery__guide-cta,
  .page-lottery__final-cta {
    margin-top: 30px;
  }
}