.page-lottery {
  padding-top: 10px; /* Small top padding for inner pages */
  background-color: var(--deep-navy); /* Base background color */
  color: var(--text-main);
  overflow-x: hidden;
}

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

.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--deep-navy);
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-lottery__hero-content {
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-lottery__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  background: var(--button);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  min-height: 44px;
}

.page-lottery__cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #3a84ff 0%, #1757c9 100%); /* Slightly lighter hover */
}

.page-lottery__cta-button--small {
  font-size: 1rem;
  padding: 12px 25px;
}

.page-lottery__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-lottery__text-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__text-secondary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-align: center;
}

.page-lottery__introduction-section,
.page-lottery__game-types-section,
.page-lottery__how-to-play-section,
.page-lottery__cta-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

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

.page-lottery__game-tile {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
}

.page-lottery__game-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery__game-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-lottery__game-tile:hover img {
  transform: scale(1.05);
}

.page-lottery__how-to-play-section {
  background-color: var(--card-bg);
}

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

.page-lottery__guide-item {
  background-color: var(--deep-navy);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-lottery__guide-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-lottery__guide-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-lottery__cta-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.page-lottery__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.page-lottery__cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(16, 35, 63, 0.85); /* Card BG with transparency */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-lottery__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-lottery__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-lottery__hero-description {
    font-size: 1rem;
  }

  .page-lottery__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .page-lottery__game-tile img {
    
  }

  .page-lottery__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery__guide-item {
    padding: 25px;
  }

  .page-lottery__guide-image {
    max-width: 300px;
  }

  .page-lottery__cta-content {
    padding: 30px;
  }

  .page-lottery__introduction-section,
  .page-lottery__game-types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__cta-section {
    padding: 40px 0;
  }
}

@media (max-width: 549px) {
  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__hero-section {
    min-height: auto;
    padding-bottom: 30px;
  }

  .page-lottery__hero-image {
    max-height: 400px;
    margin-bottom: 15px;
  }

  .page-lottery__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-lottery__hero-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .page-lottery__cta-button {
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-lottery__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
    margin-bottom: 30px;
  }

  .page-lottery__text-content,
  .page-lottery__text-secondary,
  .page-lottery__guide-description {
    font-size: 0.9rem;
  }

  .page-lottery__game-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery__game-tile img {
    height: 200px; /* Ensure min 200px height */
  }

  .page-lottery__guide-item {
    padding: 20px;
  }

  .page-lottery__guide-title {
    font-size: 1.2rem;
  }

  .page-lottery__cta-content {
    padding: 25px;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-lottery img {
    max-width: 100%;
    height: auto;
  }

  .page-lottery__game-tile img, .page-lottery__guide-image {
    min-width: 200px;
    min-height: 200px;
  }
}