.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--secondary-color); /* Matches body background */
}

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

.page-lottery__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__subtitle {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery__subtitle::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-lottery__description,
.page-lottery p,
.page-lottery li {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 15px;
  text-align: justify;
}

.page-lottery__heading-three {
  font-size: 24px;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-lottery__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-lottery__list li {
  margin-bottom: 10px;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery a[class*="button"],
.page-lottery a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

.page-lottery__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: #1A1A1A;
}

.page-lottery__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-lottery__btn-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
}

.page-lottery__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-lottery__button-group--center {
  justify-content: center;
}

.page-lottery__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* HERO Section */
.page-lottery__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.page-lottery__hero-image {
  width: 100%;
  margin: 0;
}

.page-lottery__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Products Section */
.page-lottery__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1A1A1A;
  box-sizing: border-box;
}

.page-lottery__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-lottery__products-grid {
  display: grid;
  gap: 20px;
}

.page-lottery__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-lottery__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-lottery__product-card {
  width: 100%;
  max-width: 300px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.page-lottery__product-card:hover {
  transform: translateY(-3px);
}

.page-lottery__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-lottery__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

.page-lottery__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Introduction Section */
.page-lottery__introduction-section {
  padding: 60px 20px;
  background: #1A1A1A;
  color: #f0f0f0;
}

.page-lottery__intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__text-block {
  max-width: 900px;
  margin: 0 auto;
}

/* Quick Access Section */
.page-lottery__quick-access-section {
  padding: 60px 20px;
  background: #0d0d0d;
  color: #f0f0f0;
  text-align: center;
}

.page-lottery__backup-link-text {
  margin-top: 30px;
  font-size: 16px;
  color: #ccc;
}

.page-lottery__btn-backup {
  margin-top: 20px;
}

/* Core Games Section */
.page-lottery__core-games-section {
  padding: 60px 20px;
  background: #1A1A1A;
  color: #f0f0f0;
}

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

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

.page-lottery__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-lottery__game-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__game-card p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 60px 20px;
  background: #0d0d0d;
  color: #f0f0f0;
}

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

.page-lottery__promo-card {
  background: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-lottery__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-lottery__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-lottery__promo-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
}

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

/* Security and Support Section */
.page-lottery__security-support-section {
  padding: 60px 20px;
  background: #1A1A1A;
  color: #f0f0f0;
}

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

.page-lottery__feature-item {
  background: #0d0d0d;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-lottery__feature-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__feature-item p {
  font-size: 16px;
  color: #ccc;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 60px 20px;
  background: #0d0d0d;
  color: #f0f0f0;
}

.page-lottery__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1A1A1A;
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: #2a2a2a;
  border-color: #555;
}

.page-lottery__faq-question:active {
  background: #3a3a3a;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

/* Blog Section */
.page-lottery__blog-section {
  padding: 60px 20px;
  background: #1A1A1A;
  color: #f0f0f0;
}

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

.page-lottery__blog-card {
  background: #0d0d0d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-lottery__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-lottery__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-lottery__blog-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__blog-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__blog-title a:hover {
  color: #e6c200;
}

.page-lottery__blog-excerpt {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__btn-read-more {
  align-self: flex-start;
}

/* General image responsiveness */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 40px;
  }

  .page-lottery__subtitle {
    font-size: 30px;
  }

  .page-lottery__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
  }

  .page-lottery__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-lottery__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-lottery__game-cards,
  .page-lottery__promo-grid,
  .page-lottery__features-grid,
  .page-lottery__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-lottery__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-lottery__subtitle {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-lottery__description,
  .page-lottery p,
  .page-lottery li {
    font-size: 16px;
    text-align: left;
  }

  .page-lottery__heading-three {
    font-size: 20px;
    margin-top: 25px;
  }

  /* HERO Section */
  .page-lottery__hero-section {
    padding-top: 0 !important;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-lottery__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Products Section */
  .page-lottery__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-lottery__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-lottery__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__products-grid--small .page-lottery__product-card,
  .page-lottery__products-grid--small .page-lottery__product-card-image {
    max-width: 100%; /* Ensure cards don't exceed grid cell */
  }

  .page-lottery__products-grid--small .page-lottery__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-lottery__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__products-grid--large .page-lottery__product-card,
  .page-lottery__products-grid--large .page-lottery__product-card-image {
    max-width: 100%;
  }

  .page-lottery__products-grid--large .page-lottery__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Images and Containers */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-lottery__image-content {
    margin-left: 0;
    margin-right: 0;
    border-radius: 5px;
  }

  /* Buttons and Button Containers */
  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }

  .page-lottery__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-lottery__button-group > a {
    margin: 0 auto;
    display: block;
  }

  /* Other Content Modules */
  .page-lottery__introduction-section,
  .page-lottery__quick-access-section,
  .page-lottery__core-games-section,
  .page-lottery__promotions-section,
  .page-lottery__security-support-section,
  .page-lottery__blog-section {
    padding: 40px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-lottery__game-cards,
  .page-lottery__promo-grid,
  .page-lottery__features-grid,
  .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-lottery__game-card,
  .page-lottery__promo-card,
  .page-lottery__feature-item,
  .page-lottery__blog-card {
    padding: 25px;
    border-radius: 8px;
  }

  .page-lottery__promo-image,
  .page-lottery__blog-image {
    height: 180px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
}