:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the lottery page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: #121212; /* Matches body background from shared.css */
}

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

.page-lottery__section {
  padding: 60px 0;
  position: relative;
}

/* Fixed navigation bar spacing */
.page-lottery__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
}

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

.page-lottery__light-section {
  background-color: var(--card-bg-light);
  color: var(--text-on-light);
}

.page-lottery__main-title {
  font-size: 44px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-on-dark);
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-lottery__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

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

.page-lottery__cta-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-lottery__cta-button,
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery__cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-lottery__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-lottery__features-grid,
.page-lottery__game-cards,
.page-lottery__tips-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); /* Default for dark sections */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__light-section .page-lottery__card {
  background-color: var(--card-bg-light);
  color: var(--text-on-light);
}

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

.page-lottery__feature-icon,
.page-lottery__game-image,
.page-lottery__tip-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide in cards */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-lottery__feature-title,
.page-lottery__game-title,
.page-lottery__tip-title,
.page-lottery__step-title,
.page-lottery__promotion-title,
.page-lottery__commitment-title,
.page-lottery__faq-question-text {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-lottery__feature-description,
.page-lottery__game-description,
.page-lottery__tip-description,
.page-lottery__step-description,
.page-lottery__promotion-description,
.page-lottery__commitment-description,
.page-lottery__faq-answer-text {
  font-size: 16px;
  color: inherit;
  text-align: justify;
}

.page-lottery__game-card .page-lottery__btn-primary {
  margin-top: 20px;
  width: 100%;
}

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

.page-lottery__step-item {
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}