/* style/lottery-game-intro.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-background: #121212;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background-dark-theme: rgba(255, 255, 255, 0.1);
  --card-border-dark-theme: rgba(255, 255, 255, 0.2);
}

.page-lottery-game-intro {
  color: var(--light-text); /* Light text for dark body background */
  background-color: var(--dark-background);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  /* Fixed navigation bar spacing */
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

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

.page-lottery-game-intro__hero-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--light-text);
}

.page-lottery-game-intro__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text);
}

.page-lottery-game-intro__main-title a,
.page-lottery-game-intro__section-title a {
  color: var(--light-text);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-lottery-game-intro__main-title a:hover,
.page-lottery-game-intro__section-title a:hover {
  color: var(--secondary-color);
}

.page-lottery-game-intro__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-intro__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-lottery-game-intro__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery-game-intro__btn-primary {
  background: var(--secondary-color);
  color: var(--dark-text);
  border: 2px solid transparent;
}

.page-lottery-game-intro__btn-primary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery-game-intro__btn-secondary {
  background: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
}

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

.page-lottery-game-intro__content-section {
  padding: 60px 20px;
  background-color: var(--dark-background);
  color: var(--light-text);
}

.page-lottery-game-intro__content-section.page-lottery-game-intro__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-lottery-game-intro__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--light-text);
}

.page-lottery-game-intro__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #cccccc;
}

.page-lottery-game-intro__text-block a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__text-block a:hover {
  color: #e0a800;
}

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

.page-lottery-game-intro__card {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--card-border-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--light-text);
}

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

.page-lottery-game-intro__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-lottery-game-intro__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery-game-intro__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-lottery-game-intro__card-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__card-text a:hover {
  color: #0056b3;
}

.page-lottery-game-intro__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery-game-intro__card-button:hover {
  background: #0056b3;
}

.page-lottery-game-intro__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-game-intro__feature-item {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--card-border-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  color: var(--light-text);
}

.page-lottery-game-intro__feature-icon {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-intro__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery-game-intro__feature-title a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__feature-title a:hover {
  color: #e0a800;
}

.page-lottery-game-intro__feature-item ul {
  list-style: disc inside;
  padding-left: 0;
  margin-top: 15px;
}

.page-lottery-game-intro__feature-item li {
  margin-bottom: 10px;
  color: #cccccc;
}

.page-lottery-game-intro__feature-item li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__feature-item li a:hover {
  color: #0056b3;
}

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

.page-lottery-game-intro__strategy-card {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--card-border-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--light-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery-game-intro__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-game-intro__strategy-image {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-intro__strategy-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery-game-intro__strategy-card p {
  color: #cccccc;
}

.page-lottery-game-intro__strategy-card p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__strategy-card p a:hover {
  color: #0056b3;
}

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

.page-lottery-game-intro__guide-item {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--card-border-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  color: var(--light-text);
}

.page-lottery-game-intro__guide-icon {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-intro__guide-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery-game-intro__guide-title a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__guide-title a:hover {
  color: #e0a800;
}

.page-lottery-game-intro__guide-item ol,
.page-lottery-game-intro__guide-item ul {
  list-style: decimal inside;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-lottery-game-intro__guide-item li {
  margin-bottom: 10px;
  color: #cccccc;
}

.page-lottery-game-intro__guide-item li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__guide-item li a:hover {
  color: #0056b3;
}

.page-lottery-game-intro__guide-item p {
  color: #cccccc;
  margin-bottom: 15px;
}

.page-lottery-game-intro__guide-item p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-game-intro__guide-item p a:hover {
  color: #0056b3;
}

.page-lottery-game-intro__guide-button {
  margin-top: 20px;
}

.page-lottery-game-intro__conclusion-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(45deg, #0056b3 0%, var(--primary-color) 100%);
  color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery-game-intro__main-title {
    font-size: 2.8em;
  }

  .page-lottery-game-intro__section-title {
    font-size: 2em;
  }

  .page-lottery-game-intro__card-grid,
  .page-lottery-game-intro__feature-list,
  .page-lottery-game-intro__strategy-grid,
  .page-lottery-game-intro__guide-steps {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-lottery-game-intro {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery-game-intro__container {
    padding: 0 15px;
  }

  .page-lottery-game-intro__hero-section,
  .page-lottery-game-intro__content-section,
  .page-lottery-game-intro__conclusion-section {
    padding: 40px 15px;
  }

  .page-lottery-game-intro__main-title {
    font-size: 2em;
  }

  .page-lottery-game-intro__hero-description {
    font-size: 1em;
  }

  .page-lottery-game-intro__section-title {
    font-size: 1.8em;
  }

  .page-lottery-game-intro__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery-game-intro__cta-button,
  .page-lottery-game-intro__card-button,
  .page-lottery-game-intro__guide-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  .page-lottery-game-intro__card,
  .page-lottery-game-intro__feature-item,
  .page-lottery-game-intro__strategy-card,
  .page-lottery-game-intro__guide-item {
    padding: 20px;
  }

  .page-lottery-game-intro img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery-game-intro__card-image,
  .page-lottery-game-intro__feature-icon,
  .page-lottery-game-intro__strategy-image,
  .page-lottery-game-intro__guide-icon {
    max-width: 100% !important; /* Ensure images in cards/features are fully responsive */
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-lottery-game-intro__main-title {
    font-size: 1.8em;
  }

  .page-lottery-game-intro__section-title {
    font-size: 1.5em;
  }
}

/* Contrast Fixes */
.page-lottery-game-intro__dark-bg {
  color: var(--light-text); /* Deep dark background requires light text */
}

.page-lottery-game-intro__light-bg {
  color: var(--dark-text); /* Light background requires dark text */
}

.page-lottery-game-intro__medium-bg {
  color: var(--dark-text); /* Default to dark text for medium brightness */
}

/* Ensure all text in general content areas is readable */
.page-lottery-game-intro p,
.page-lottery-game-intro li {
  color: #cccccc; /* Slightly off-white for better readability on dark backgrounds */
}

.page-lottery-game-intro__card,
.page-lottery-game-intro__feature-item,
.page-lottery-game-intro__strategy-card,
.page-lottery-game-intro__guide-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark theme cards */
  color: var(--light-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-lottery-game-intro__btn-primary {
  background: var(--secondary-color);
  color: var(--dark-text); /* Button text always dark on bright button */
}

.page-lottery-game-intro__btn-secondary {
  background: transparent;
  color: var(--light-text); /* Button text always light on transparent/dark button */
  border-color: var(--light-text);
}

.page-lottery-game-intro__btn-secondary:hover {
  background: var(--light-text);
  color: var(--primary-color);
}