:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark-primary: #121212; /* Body background from shared.css */
  --bg-card-dark: rgba(255, 255, 255, 0.1);
  --bg-card-light: #ffffff;
  --border-color: #e0e0e0;
}

.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(--bg-dark-primary);
}

/* Ensure content is not hidden by fixed header */
.page-lottery__hero-section,
.page-lottery__intro-section,
.page-lottery__games-section,
.page-lottery__how-to-play-section,
.page-lottery__advantages-section,
.page-lottery__tips-section,
.page-lottery__contact-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
}

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

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.page-lottery p {
  color: var(--text-color-light);
}

.page-lottery a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery a:hover {
  color: #ff6f61; /* Lighter shade of secondary color */
  text-decoration: underline;
}

/* Hero Section */
.page-lottery__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #061536 100%);
  padding-top: 120px; /* Desktop */
  padding-bottom: 80px;
  text-align: center;
  color: var(--text-color-light);
}

.page-lottery__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-lottery__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-lottery__cta-button--primary {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

.page-lottery__cta-button--primary:hover {
  background: #ff6f61;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.page-lottery__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Intro Section */
.page-lottery__intro-section {
  background-color: var(--bg-dark-primary);
  padding-bottom: 60px;
}

.page-lottery__intro-section .page-lottery__section-title {
  color: var(--text-color-light);
}

.page-lottery__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__image-text-block:nth-child(even) {
  flex-direction: row-reverse;
}

.page-lottery__image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery__text-content {
  flex: 1;
  min-width: 300px;
}

.page-lottery__text-content .page-lottery__sub-title {
  color: var(--secondary-color);
  text-align: left;
}

.page-lottery__text-content p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Games Section (Dark background) */
.page-lottery__games-section {
  background-color: var(--primary-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-lottery__games-section .page-lottery__section-title {
  color: var(--text-color-light);
}

.page-lottery__games-section .page-lottery__text-block {
  color: #f0f0f0;
}

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

.page-lottery__game-card {
  background: var(--bg-card-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-light);
}

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

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

.page-lottery__game-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-lottery__game-description {
  font-size: 15px;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-small:hover {
  background: #ff6f61;
  text-decoration: none;
}

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

.page-lottery__how-to-play-section .page-lottery__section-title {
  color: var(--text-color-light);
}

.page-lottery__how-to-play-section .page-lottery__text-block {
  color: #f0f0f0;
}

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

.page-lottery__step-card {
  background: var(--bg-card-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-lottery__step-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-lottery__step-description {
  font-size: 15px;
  color: #e0e0e0;
}

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

/* Advantages Section (Dark background) */
.page-lottery__advantages-section {
  background-color: var(--primary-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-lottery__advantages-section .page-lottery__section-title {
  color: var(--text-color-light);
}

.page-lottery__advantages-section .page-lottery__text-block {
  color: #f0f0f0;
}

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

.page-lottery__advantage-item {
  background: var(--bg-card-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
}

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

.page-lottery__advantage-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__advantage-item p {
  font-size: 15px;
  color: #e0e0e0;
}

/* Tips Section */
.page-lottery__tips-section {
  background-color: var(--bg-dark-primary);
  padding-bottom: 60px;
}

.page-lottery__tips-section .page-lottery__section-title {
  color: var(--text-color-light);
}

.page-lottery__tips-section .page-lottery__text-block {
  color: #f0f0f0;
}

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

.page-lottery__tips-item {
  background: var(--bg-card-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-lottery__tips-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-lottery__tips-item p {
  font-size: 15px;
  color: #e0e0e0;
}

/* Contact Section (Dark background) */
.page-lottery__contact-section {
  background-color: var(--primary-color);
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-lottery__contact-section .page-lottery__section-title {
  color: var(--text-color-light);
}

.page-lottery__contact-section .page-lottery__text-block {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 40px;
  }
  .page-lottery__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  /* Ensure content is not hidden by fixed header */
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__games-section,
  .page-lottery__how-to-play-section,
  .page-lottery__advantages-section,
  .page-lottery__tips-section,
  .page-lottery__contact-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__hero-title {
    font-size: 32px;
  }

  .page-lottery__hero-description {
    font-size: 16px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery__cta-button,
  .page-lottery__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  
  .page-lottery__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-lottery__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-lottery__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-lottery__image-text-block:nth-child(even) {
    flex-direction: column;
  }

  .page-lottery__image {
    min-width: unset;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-lottery__text-content .page-lottery__sub-title {
    font-size: 20px;
    text-align: center;
  }
  
  .page-lottery__text-content p {
    text-align: center;
  }

  .page-lottery__game-grid,
  .page-lottery__steps-grid,
  .page-lottery__advantage-grid,
  .page-lottery__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__game-card,
  .page-lottery__step-card,
  .page-lottery__advantage-item,
  .page-lottery__tips-item {
    padding: 20px;
  }

  .page-lottery__game-image,
  .page-lottery__step-icon,
  .page-lottery__advantage-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-lottery__game-title,
  .page-lottery__step-title,
  .page-lottery__advantage-title,
  .page-lottery__tips-title {
    font-size: 18px;
  }

  .page-lottery__game-description,
  .page-lottery__step-description,
  .page-lottery__advantage-item p,
  .page-lottery__tips-item p {
    font-size: 14px;
  }

  .page-lottery__cta-center {
    margin-top: 30px;
  }
  
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}