:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --dark-bg-1: #0d0d0d; /* From shared.css */
  --dark-bg-2: #1a1a1a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --gray-border: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default to light text for body's dark background */
  background-color: var(--dark-bg-1); /* Inherit from body, but ensure context for sections */
}

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

/* Fixed Nav Bar Spacing */
.page-lottery__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual fixed header height */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

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

.page-lottery__light-bg {
  background-color: #ffffff;
  color: var(--dark-text-color);
}

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

.page-lottery__hero-section .page-lottery__section-title,
.page-lottery__dark-bg .page-lottery__section-title {
  color: var(--primary-color);
}

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

/* Hero Section */
.page-lottery__hero-container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

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

.page-lottery__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  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: none;
  cursor: pointer;
}

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

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

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

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

.page-lottery__btn-small {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Sections */
.page-lottery__intro-section,
.page-lottery__guide-section,
.page-lottery__features-section {
  padding: 60px 0;
}

.page-lottery__types-section,
.page-lottery__promo-section,
.page-lottery__safety-section {
  padding: 60px 0;
}

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

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

/* Cards */
.page-lottery__card {
  background-color: var(--dark-bg-1);
  color: var(--light-text-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-lottery__card-description {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

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

.page-lottery__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-lottery__guide-item-title {
  font-size: 22px;
  color: var(--dark-text-color);
  margin-bottom: 10px;
}

.page-lottery__guide-item p {
  color: var(--dark-text-color);
  font-size: 16px;
}

.page-lottery__guide-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery__guide-item a:hover {
  color: darken(var(--secondary-color), 10%);
}

/* Promotions */
.page-lottery__promo-card {
  background-color: var(--dark-bg-1);
  color: var(--light-text-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-lottery__promo-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-lottery__promo-content {
  padding: 20px;
  flex-grow: 1;
}

.page-lottery__promo-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__promo-description {
  font-size: 16px;
  margin-bottom: 15px;
}

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

.page-lottery__features-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__features-item-title {
  font-size: 22px;
  color: var(--dark-text-color);
  margin-bottom: 10px;
}

.page-lottery__features-item p {
  color: var(--dark-text-color);
  font-size: 16px;
}

/* Safety Section */
.page-lottery__safety-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-lottery__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 44px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-lottery__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-lottery__promo-image {
    width: 100%;
    height: 250px;
  }
  .page-lottery__promo-content {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
  }
  .page-lottery__hero-container {
    padding: 0 15px;
  }
  .page-lottery__hero-title {
    font-size: 36px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-lottery__text-block {
    font-size: 15px;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__grid-3-cols {
    grid-template-columns: 1fr;
  }
  .page-lottery__card {
    padding-bottom: 20px;
  }
  .page-lottery__card-title {
    font-size: 20px;
  }
  .page-lottery__card-description {
    font-size: 15px;
  }
  .page-lottery__guide-item {
    padding: 20px 25px;
  }
  .page-lottery__guide-item-title {
    font-size: 19px;
  }
  .page-lottery__guide-item p {
    font-size: 15px;
  }
  .page-lottery__promo-card {
    padding: 15px;
  }
  .page-lottery__promo-image {
    height: 200px;
  }
  .page-lottery__promo-title {
    font-size: 20px;
  }
  .page-lottery__promo-description {
    font-size: 15px;
  }
  .page-lottery__features-list {
    grid-template-columns: 1fr;
  }
  .page-lottery__features-item {
    padding: 25px;
  }
  .page-lottery__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-lottery__features-item-title {
    font-size: 19px;
  }
  /* Ensure all images are responsive */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__promo-section,
  .page-lottery__features-section,
  .page-lottery__safety-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Helper for darkening brand color, if SASS-like functions are supported or manually */
/* @function darken($color, $percentage) { ... } */
/* For pure CSS, manually define darker shades or use rgba */