:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000; /* Body background from shared.css */
  --bg-light: #f8f9fa;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-border-dark-mode: rgba(255, 255, 255, 0.2);
}

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

/* Fixed Header Padding - Apply to the first section that is not video section */
.page-lottery__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
  background: url('[GALLERY:bg:lottery hero background, abstract lines, golden light]') no-repeat center center/cover;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-lottery__hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure text breaks words */
  text-align: center;
}

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

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

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

.page-lottery__btn-secondary:hover {
  background: #6b0000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-lottery__text-block {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Introduction Section */
.page-lottery__introduction-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

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

.page-lottery__feature-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light); /* Ensure light text on dark card */
}

.page-lottery__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__feature-icon {
  width: 250px; /* Min size 200x200px, so this is just for visual scale */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px; /* Added for better visual */
}

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

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

/* Types Section */
.page-lottery__types-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Dark red background */
  color: var(--text-light); /* Light text */
}

.page-lottery__types-section .page-lottery__section-title {
  color: var(--primary-color); /* Gold title on dark red background */
}

.page-lottery__types-section .page-lottery__text-block {
  color: var(--text-light);
}

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

.page-lottery__game-card {
  background: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-lottery__game-description {
  font-size: 0.95em;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__card-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-dark); /* Gold background, dark text */
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

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

/* How to Play Section */
.page-lottery__how-to-play-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-lottery__step-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

.page-lottery__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--text-dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-lottery__step-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 20px; /* Space for number */
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 1em;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-lottery__step-cta:hover {
  background: #6b0000;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-light); /* Light background for contrast */
  color: var(--text-dark); /* Dark text on light background */
}

.page-lottery__promotions-section .page-lottery__section-title {
  color: var(--secondary-color); /* Dark red title on light background */
}

.page-lottery__promotions-section .page-lottery__text-block {
  color: var(--text-dark);
}

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

.page-lottery__promo-card {
  background: #ffffff; /* White card on light background */
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark); /* Dark text */
  display: flex;
  flex-direction: column;
}

.page-lottery__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-lottery__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery__promo-description {
  font-size: 0.95em;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__promo-cta {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-lottery__promo-cta:hover {
  background: #e6c200;
}

/* Mobile App Section */
.page-lottery__mobile-app-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-lottery__app-flex-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-lottery__app-content {
  flex: 1;
  color: var(--text-light);
}

.page-lottery__app-content .page-lottery__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-lottery__app-content .page-lottery__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-lottery__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-lottery__app-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.8"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 1.05em;
}

.page-lottery__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-lottery__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Security Section */
.page-lottery__security-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Dark red background */
  color: var(--text-light);
}

.page-lottery__security-section .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__security-section .page-lottery__text-block {
  color: var(--text-light);
}