:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #f0f0f0;
  --text-dark: #000000;
  --bg-dark: #000000;
  --bg-light-variant: #1a1a1a;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.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(--bg-dark); /* Inherited from body, but explicitly set for clarity */
  padding-bottom: 60px; /* Space above footer */
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(139, 0, 0, 0.7) 100%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  overflow: hidden;
}

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

.page-lottery__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px 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__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-tertiary,
.page-lottery__card-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark); /* Gold button, dark text */
  border-color: var(--primary-color);
}

.page-lottery__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: var(--primary-color); /* Transparent button, gold text */
  border-color: var(--primary-color);
}

.page-lottery__btn-secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-lottery__btn-tertiary {
  background-color: var(--secondary-color);
  color: var(--text-light); /* Dark red button, light text */
  border-color: var(--secondary-color);
}

.page-lottery__btn-tertiary:hover {
  background-color: darken(var(--secondary-color), 10%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Section Titles and Subtitles */
.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-lottery__section-subtitle {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Content Sections */
.page-lottery__introduction-section,
.page-lottery__how-to-play-section,
.page-lottery__app-section,
.page-lottery__contact-section {
  padding: 60px 0;
}

.page-lottery__dark-section {
  background-color: var(--bg-light-variant);
  color: var(--text-light);
  padding: 60px 0;
}

.page-lottery__light-bg {
  background-color: var(--bg-light-variant);
  color: var(--text-light);
  padding: 60px 0;
}

.page-lottery__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-lottery__content-block--reversed {
  flex-direction: row-reverse;
}

.page-lottery__content-block .page-lottery__image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery__content-block .page-lottery__text-content {
  flex: 1;
}

.page-lottery__content-block .page-lottery__text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-light);
}

.page-lottery__content-block .page-lottery__text-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery__content-block .page-lottery__text-content a:hover {
  color: lighten(var(--primary-color), 10%);
}

/* Grid Layouts */
.page-lottery__grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* Cards */
.page-lottery__card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

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

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

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

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

.page-lottery__card-link {
  margin-top: auto; /* Pushes the link to the bottom */
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
  width: fit-content;
  padding: 10px 20px;
  font-size: 1em;
}

.page-lottery__card-link:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Numbered List (How to Play) */
.page-lottery__numbered-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__numbered-list li {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-lottery__numbered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__numbered-list p {
  color: var(--text-light);
}

/* Feature Items (Advantages Section) */
.page-lottery__feature-item {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-lottery__feature-icon {
  width: 120px; /* Larger icon size */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* Contact Section */
.page-lottery__contact-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-lottery__contact-info p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-lottery__contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-lottery__contact-info a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  color: var(--text-light);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  color: var(--text-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  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-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
}

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