:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212; /* Body background from shared.css */
  --background-light: #f8f9fa;
  --border-color: #333333;
}

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

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

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

.page-lottery__text-block {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Desktop padding-top for fixed header */
  background: var(--secondary-color);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-lottery__main-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

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

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

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

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

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

.page-lottery__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
}

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

.page-lottery__introduction-section .page-lottery__section-title,
.page-lottery__introduction-section .page-lottery__text-block {
  color: var(--text-color-dark);
}

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

.page-lottery__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

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

.page-lottery__feature-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery__feature-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

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

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

.page-lottery__game-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__game-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.page-lottery__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery__card-button:hover {
  background: #e0c200;
  transform: translateY(-2px);
}

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

.page-lottery__how-to-play-section .page-lottery__section-title,
.page-lottery__how-to-play-section .page-lottery__text-block {
  color: var(--text-color-dark);
}

.page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-lottery__step-item {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark);
}

.page-lottery__step-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 17px;
  color: var(--text-color-dark);
}

.page-lottery__step-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-lottery__step-description a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}

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

.page-lottery__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__promo-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__promo-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__promo-description {
  font-size: 17px;
  color: var(--text-color-light);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Tips Section */
.page-lottery__tips-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-lottery__tips-section .page-lottery__section-title,
.page-lottery__tips-section .page-lottery__text-block {
  color: var(--text-color-dark);
}

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

.page-lottery__tip-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark);
}

.page-lottery__tip-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__tip-description {
  font-size: 17px;
  color: var(--text-color-dark);
}

/* Why Choose Section */
.page-lottery__why-choose-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}

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

.page-lottery__advantage-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-lottery__advantage-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-lottery__advantage-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__advantage-description {
  font-size: 16px;
  color: var(--text-color-light);
}

.page-lottery__final-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-lottery__final-cta-text {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 44px;
  }
  .page-lottery__hero-description {
    font-size: 20px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__text-block {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  .page-lottery__main-title {
    font-size: 36px;
    line-height: 1.3;
  }
  .page-lottery__hero-description {
    font-size: 18px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-lottery__cta-button {
    font-size: 18px;
    padding: 12px 25px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-lottery__hero-image,
  .page-lottery__feature-icon,
  .page-lottery__game-image,
  .page-lottery__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__container,
  .page-lottery__introduction-section,
  .page-lottery__types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__tips-section,
  .page-lottery__why-choose-section,
  .page-lottery__features-grid,
  .page-lottery__game-cards,
  .page-lottery__promo-cards,
  .page-lottery__tips-list,
  .page-lottery__advantages-grid {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  .page-lottery__section-title {
    font-size: 28px;
  }
  .page-lottery__text-block,
  .page-lottery__feature-description,
  .page-lottery__game-description,
  .page-lottery__promo-description,
  .page-lottery__tip-description,
  .page-lottery__advantage-description {
    font-size: 16px;
  }
  .page-lottery__feature-title,
  .page-lottery__game-title,
  .page-lottery__step-title,
  .page-lottery__promo-title,
  .page-lottery__tip-title,
  .page-lottery__advantage-title {
    font-size: 20px;
  }
  .page-lottery__game-image,
  .page-lottery__promo-image {
    height: 180px; /* Adjust height for smaller screens */
  }
  .page-lottery__final-cta-text {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 30px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-lottery__game-image,
  .page-lottery__promo-image {
    height: 150px; /* Further adjust height for very small screens */
  }
}